mapSchema transform MapperKind.TYPE return value #5353
Unanswered
kennyjwilli
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a project that specifies directives on
types, similar to the Enforcing Access Permissions example. It looks something like this.I've read the docs on implementing that
@authdirective. The implementation shows themapSchemacall using bothTYPEandOBJECT_FIELD. In the latter, we actually call the underlying resolve function if the user has the right role. If they do, we permit access to the particular object field.In my case, I'd like all object fields to be resolved first. After resolution, I am able to determine if the user has the correct role to view the object. Is this possible with
mapSchema?Beta Was this translation helpful? Give feedback.
All reactions