dart-graphql / graphql_client

GraphQL Client.
https://pub.dartlang.org/packages/graphql_client
MIT License
78 stars 9 forks source link

Using for calls between flutter and a flutter plugin #18

Open ghost opened 6 years ago

ghost commented 6 years ago

Could you make an example where you don't use an endpoint url ?

The reason is because I have to write plugins in golang and wrap in Java and swift. Graphql is a really nice way to avoid having to write a ton of java and swift code on a large API. So from flutter I just call a single method and it passes through to the golang layer which then sees the query and does it's thing and returns the graphql response It's not the fastest but it's convenient. It's also kind of nice because I can use the same technique for making server caller from flutter also, which is when of course I do need an endpoint

Inside the plugin I use golang which has pretty good graphql support including resolvers.

If you want more info just ask. If your super busy just say and I can try to do it myself and publish and example.