Hacker News new | ask | show | jobs
by BayAreaSmayArea 3382 days ago
I'll take you up on that. I've recently started a little side project using graphql and location based data, nothing serious just sharpening up on some things that are new or that I haven't touched in a while.

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?

1 comments

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