mhallin/graphql_ppx

Using multiple endpoints

idkjs opened this issue · 3 comments

idkjs commented

How would you set this up if you had two clients hitting multiple endpoints for different purposes.

I am trying to hit a https://api.graphloc.com/graphql just for geo coordinates while using a different endpoint for everything else. Compiler complains because I haven't run yarn send-introspection-query on that endpoint. Is this possible with this ppx?

Thank you.

There is #82 if you want to override graphql_schema.json per query. Due to lack of @mhallin feedback, I doubt it will be merged anytime soon 😕

idkjs commented

@baransu nice tip,sir. Thank you. I will try it.

I would really love to have this as well.