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
We are moving away from considering support for the documented solution, as the problem is with graphql-js v14 and the spec, not the tooling, and the available workarounds seem sufficient.
Right now we are planning to remove support for schemaDirectives in Apollo Server 3, because the project that implements it (graphql-tools) considers it to be a legacy API. Folks who want to use schemaDirectives or its non-legacy replacement schemaTransforms can use @graphql-tools/schema directly to create a schema passed in with new ApolloServer({schema}); issues relating to these options should probably be opened in the graphql-tools repo.
According to https://www.apollographql.com/docs/graphql-tools/schema-directives/#declaring-schema-directives when implementing the
getDirectiveDeclaration
on a customSchemaDirectiveVisitor
, it is not necessary to declare the directive in the SDL.However this is no longer the case with graphql-tools >= 4.0.0 and graphql-js >= 14.0.0. Related issues are
Support for the documented solution is only considered for the next release of graphql-tools (ardatan/graphql-tools#1337).
The docs should be updated to reflect that.
The text was updated successfully, but these errors were encountered: