-
Notifications
You must be signed in to change notification settings - Fork 434
Open
Labels
enhancementImprovement of existing features or bugfixImprovement of existing features or bugfixhelp wanted

Description
Authentication and other checks can be included in the generated schema using directives. Is it possible to do that juniper right now?
I'm trying to add auth checks for certain mutations using directives but seems impossible in juniper.
Something like this,
https://gist.github.com/LawJolla/132b99179b978cf76eadfd7a6d742b22#file-scratch-graphql
Only other alternative I see is using macros. isAuthenticate!() and hasRole!(role: “MANAGER”) within the mutations.
tjkirch, pleshevskiy, bionicles, aviallon, izissise and 3 morebioniclesbioniclesbioniclesbioniclesbionicles
Metadata
Metadata
Assignees
Labels
enhancementImprovement of existing features or bugfixImprovement of existing features or bugfixhelp wanted