Replies: 2 comments 1 reply
-
You can define the directive in your schema as described in the graphql-java documentation. Then you can hook into the RuntimeWiring by using
You can also refer to a related discussion here: #155 If you don't need to wrap data fetchers etc. and just need to do some simple checks within the data fetcher, you also have access to it within the data fetcher from the DataFetchingEnvironment using Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
There is now an example for custom directives in https://netflix.github.io/dgs/examples/ |
Beta Was this translation helpful? Give feedback.
-
Hello!
Is there any documentation or support regarding adding custom directive in the schema: GraphQL Java Auth
Maybe with codegen @srinivasankavitha?
Another approach would be to leverage spring security but I was wondering how to model it in the GraphQL schema.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions