-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unable to implement custom directives as per documentation #28
Comments
Would you like to send a PR to specify the docs further in this module? Unfortunately this is a limitation that cannot be bypassed. |
Hey @mcollina and @luke88jones , First, in this repo, I created a new example in the Second in the Please take a look at the two PRs and let me know if there are any mistakes or something to change. |
Hey @Puppo thanks for doing this. I was intended to update the docs but a new baby got in the way 😛. The docs updates look good to me 👍 |
It's not possible to implement directives as per the custom directives documentation on the main library. This seems to be mainly due to the inability to use a
GraphQLSchema
instance when registering the federation library.I've been able to get around the issue using the
schemaTransforms
property to register my directive handlers. To be honest this implementation is a bit nicer but I think it just needs to be documented.The text was updated successfully, but these errors were encountered: