Apollo Plugin willResolveField
event is not fired
#1523
Unanswered
lkrzyzanek
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you share a full example of this? To me it seems like because you are using an envelop provided schema, apollo does not have access to it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use envelop (as part of graphql-mesh) with Apollo as custom server.
Apollo plugins implementing execute phase works correctly. Events like
requestDidStart
orwillSendResponse
are fired without any issue. (https://www.apollographql.com/docs/apollo-server/integrations/plugins/)The problem is that
willResolveField
is not fired at all. TheexecutionDidStart
which is just before it is executed.This breaks plugins which use this event e.g.
ApolloServerPluginCacheControl
. (https://github.com/apollographql/apollo-server/blob/main/packages/apollo-server-core/src/plugin/cacheControl/index.ts#L133)Is there any reason/limitation that causes this issue?
Thanks.
Libor
Beta Was this translation helpful? Give feedback.
All reactions