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
-
I am working on a project that specifies directives on
type
s, similar to the Enforcing Access Permissions example. It looks something like this.I've read the docs on implementing that
@auth
directive. The implementation shows themapSchema
call using bothTYPE
andOBJECT_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