You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useOnResolve plugin was created to replace onResolve hook that was previously available for Envelop plugins.
In our opinion, wrapping resolvers should ba avoided at any cost, since it introduced a lot of overhead and can introduce performance issues.
Also, Envelop aims to be a runtime plugin system. This means schema modifications should not be part of the plugin lifecycle and should be done at schema build time.
Solution
Because of the point previously exposed, we should deprecate then remove this plugin.
Additional context
This removal necessitate the refactoring of multiple plugins (mostly monitoring related):
apollo-tracing
newrelic
opentelemetry
prometheus
rate-limiter
The text was updated successfully, but these errors were encountered:
Context
useOnResolve
plugin was created to replaceonResolve
hook that was previously available for Envelop plugins.In our opinion, wrapping resolvers should ba avoided at any cost, since it introduced a lot of overhead and can introduce performance issues.
Also, Envelop aims to be a runtime plugin system. This means schema modifications should not be part of the plugin lifecycle and should be done at schema build time.
Solution
Because of the point previously exposed, we should deprecate then remove this plugin.
Additional context
This removal necessitate the refactoring of multiple plugins (mostly monitoring related):
The text was updated successfully, but these errors were encountered: