Apollo Plugin willResolveField
event is not fired
#4531
Unanswered
lkrzyzanek
asked this question in
General
Replies: 1 comment 2 replies
-
Not sure about your configuration but if a source has its own executor that doesn't use resolvers, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm cross-posting question from envelop: n1ru4l/envelop#1523
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