graphql_ppx icon indicating copy to clipboard operation
graphql_ppx copied to clipboard

Using multiple endpoints

Open idkjs opened this issue 6 years ago • 3 comments

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.

idkjs avatar Jul 17 '19 13:07 idkjs

There is https://github.com/mhallin/graphql_ppx/pull/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 😕

baransu avatar Jul 19 '19 11:07 baransu

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

idkjs avatar Jul 19 '19 11:07 idkjs

I would really love to have this as well.

wu-s-john avatar Sep 16 '19 19:09 wu-s-john