Difference between graphQL playground and running it within the storefront #254
Unanswered
caseyjconger
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
-
Hi all, I'm running into an issue dealing with refreshing user tokens. I have the platform running (via docker) on an EC2 instance.
I wrote the following GraphQL mutation
When I run this in the GraphQL Playground it works perfectly fine. However, when I try adding it to the code (add a
.graphql
file and runpnpm generate
to get the hooks and types), the query runs but returns null values for thetoken
anduser
fields (I see it hitting the backend and returning a 200).Likewise , if I try using postman and send the same request to
http://my-ip-address:8000/graphql
I again get the same response as trying to call it from within the storefront:Question: Any ideas why the difference in behavior between the graphql playground versus calling it from within the storefront/postman? Is this a permissions issue? Any insight would be appreciated and please let me know if you need any additional info.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions