To run the docs:
/docs in the repogit submodule init && git submodule updatenpm installnpm startAdding a page can be done by:
docs/source directorydocs/_config.ymlThis 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?
If so, please give me code example
@Altiano: I opened a PR for the document. Please check it, and you can check tests for more examples.
Most helpful comment
@giautm Thanks for your example code. There is a typo in your code.
Wrong
Should be