Q45: How do GraphQL Server Plugins hook into request lifecycles?

Difficulty:ExpertTopic:Extensibility

Modern engines (e.g., Envelop, Apollo Plugins) offer lifecycle hooks: requestDidStart, parsingDidStart, validationDidStart, and willSendResponse. Plugins monitor metrics, inject context variables, or enforce custom validation rules at each step.

Key Takeaways
  • Lifecycle plugins extend execution steps to handle tracing, caching, and custom security rules.
Knowledge Check

Which hook fires right before the server sends its payload back to the network client?