-
|
Hello, I've been reading https://graphql-ruby.org/type_definitions/directives.html#custom-schema-directives, which has an exact example of a permission directive. However it never teaches how to verify that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi! Great question. After setting up directive configuration, you can implement You could speed this up by having the directive also assign instance variables, see the gem's |
Beta Was this translation helpful? Give feedback.
Hi! Great question. After setting up directive configuration, you can implement
authorized?methods which check the givencontextagainst the schema member's permission configuration. For example, in a type:You could speed this up by having the directive also assign instance variables, see the gem's
deprecation_reasonhan…