DEV Community

loading...

Discussion on: Using Apollo with multiple Graphql endpoints

Collapse
itsjzt profile image
Saurabh Sharma

Oh this is a nice approach.

We also make shopify apps at codeword, but we call shopify queries in backend and map those to our graphql api, it works nice for us since we also want some control in few queries

Collapse
jamalx31 profile image
Jamal Mashal Author

yes, In Shopify use case our app actually sends the query to our backend and then use proxy to send it to Shopify (you can't send the query directly from the client since you need API credentials you can't expose).
But using this method makes it easier to tell the server which query should go where