sangria
sangria copied to clipboard
[Feature Request] Ability to add directives
I can't see any way to create any directives within a schema.
I tried but I ran into the same issue that has been open for a while.
https://github.com/sangria-graphql/sangria/issues/467 Any help is greatly appreciated.
I might help you here 🤔 there are two parts to consider while using a custom directive. The first part is the definition, for that you use sangria.schema.Directive, as can be seen here. The second part is to actually use the defined directive, and for that you need to use sangria.ast.Directive, here.
I might help you here 🤔 there are two parts to consider while using a custom directive. The first part is the definition, for that you use sangria.schema.Directive, as can be seen here. The second part is to actually use the defined directive, and for that you need to use sangria.ast.Directive, here.
I tried this and it didn't seem to apply them to the schema sadly.
https://github.com/sangria-graphql/sangria/discussions/913
Fixed by https://github.com/sangria-graphql/sangria/pull/918