Envelop Plugins
GraphQL Yoga v2 documentation (superseded by v5): Envelop is a lightweight JavaScript (TypeScript) library for customizing the GraphQL execution layer, allowing developers to build, share and compose plugins that enhance the capabilities of your GraphQL server.
Envelop is a lightweight JavaScript (TypeScript) library for customizing the GraphQL execution layer, allowing developers to build, share and compose plugins that enhance the capabilities of your GraphQL server. GraphQL Yoga uses Envelop under the hood, so you can easily extend your server’s capabilities with the plugins from Envelop Ecosystem
Example
The following example adds GraphQL JIT to our GraphQL Server using Envelop GraphQL JIT Plugin: