-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Need docs for directive resolvers #530
Comments
This one can be also solved with directives and is a good example of this great feature. |
Yeah it can definitely be a good approach to authorization! |
@giautm neat!! want to send that as a PR? If not I'll get around to copy-pasting it next week |
@giautm Thanks for your example code. There is a typo in your code. Wrong attachDirectiveResolvers(
schema,
directiveResolvers,
}); Should be attachDirectiveResolvers(schema, directiveResolvers); |
Can directive has parameters? |
@Altiano: I opened a PR for the document. Please check it, and you can check tests for more examples. |
#518 by @giautm added a new feature that's shipping in 2.13.0, we need docs for it though! I propose a new page called "Schema directives" to document this stuff.
To run the docs:
/docs
in the repogit submodule init && git submodule update
npm install
npm start
Adding a page can be done by:
docs/source
directorydocs/_config.yml
The text was updated successfully, but these errors were encountered: