Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually add schemaDirectives after resolvers #356

Merged

Conversation

darrellwarde
Copy link
Contributor

@darrellwarde darrellwarde commented Jul 23, 2021

Description

It appears that despite promising to be fixed in version 6.0.10 (https://github.com/ardatan/graphql-tools/releases/tag/v6.0.10), addResolversToSchema in @graphql-tools/schema breaks schema directives. So this is a workaround for that bug, adding schema directives after resolvers have been added.

Also changed constructor types around for this field so hopefully SchemaDirectiveVisitor can be used directly from @graphql-tools/utils without recasting.

Issue

#349

Checklist

The following requirements should have been met (depending on the changes in the branch):

  • Documentation has been updated
  • TCK tests have been updated
  • Integration tests have been updated
  • Example applications have been updated
  • New files have copyright header
  • CLA (https://neo4j.com/developer/cla/) has been signed

@darrellwarde darrellwarde linked an issue Jul 23, 2021 that may be closed by this pull request
@darrellwarde darrellwarde merged commit b0733ea into neo4j:2.0.0 Jul 26, 2021
@darrellwarde darrellwarde deleted the bugfix/schema-directives-not-working branch May 9, 2022 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alpha.3 - schemaDirectives not in use
2 participants