Replies: 1 comment
-
I found the problem. I was not passing the
Once I passed the client, then the regular WordPress functions worked like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have registered a mutation in WordPress, and I am calling that mutation from my Faust app. But I am having a problem getting the authenticated user and checking whether that user is an administrator in the
mutateAndGetPayload
function. The Apollo docs mention checking user capabilities here, but provide no examples of how to access the user.Is there a way to access the user when called from a Faust app? I assume there is something in the
$context
but I haven't found anything useful yet.Beta Was this translation helpful? Give feedback.
All reactions