graphql POST request results in 404 #1048
Replies: 5 comments 1 reply
-
Same problem here. The graphql proxy functionality was removed from the template in 7431330, but there is no indication of what should replace it. As a result, tutorials in the Shopify documentation like this one no longer work. |
Beta Was this translation helpful? Give feedback.
-
Hi! I am facing the same issue and I am recreating all my queries work through fetch and Shopify.Clients.Graphql. Here is an example: |
Beta Was this translation helpful? Give feedback.
-
Has there ever been an explanation as to why the graphql proxy was removed? The only hint I can see is on PR #908 which says it's company policy to 'prefer offline to online session tokens' and links to some non-public issue tracker. So for the rest of us we're none the wiser. Perhaps there's a good reason, but it does seem that the consequence is to make our apps more complicated than they need to be. |
Beta Was this translation helpful? Give feedback.
-
The GraphQL functionality is still in the library. The proxy functionality was removed from the template at the same time as changing the default sessions to offline because the GraphQL proxy functionality can only work with online sessions. |
Beta Was this translation helpful? Give feedback.
-
What mkevinsullivan says makes sense. The issue seemed to lack any good docs from shopify as it is a general back end problem. So I avoided it due to lack of certainty. |
Beta Was this translation helpful? Give feedback.
-
Hi people,
I have built a basic app to setup pre-orders and I am using the Apollo client to make the POST calls for actually submitting those rules. But every time I want to send the data, I will get a 404 error in my console. The url is a NGROK tunnel i.e; https://3z9a-sndsa-xxxx-xxxx/graphql
Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions