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:
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