If we have multiple plugins listening for the same lifecycle event, can define an order in their execution.
For example plugin P1, P2 and P3 all listen for didResolveSource
, is there a way that we can define that P1 should complete first, then P2 and finally P3?
The didResolveSource
events are not individually await
ed by Apollo Server so I wouldn’t structure your code in a way that depends on an order (i.e. the order of your plugins
array) if you can avoid it. Do you mind sharing a bit more about what you’re trying to do?