Re:GraphQL: A Tutorial for Getting Started (Hello World)
by thebigredgeek on Tuesday March 21, 2017 @06:08PM
(#13926730)
So, there is literally no difference in how you would handle this with GraphQL vs a traditional RESTful API. All you have to do is pass query variables in your query... and then pass those variables to whatever model method / service RPC you call to grab location data.
If you are using React, you can learn more about request variables here:
http://dev.apollodata.com/react/queries.html
Variables are also how you submit data in mutations.
I highly recommend Apollo for a client side GraphQL implementation. They are the best
I haven't found as much in the world of graphql using location based data and how the queries usually look and how the resolvers are built. Do you know of any nicely put together graphql projects with nice filters/etc available that deal primarily with location based data?