Are there any plans to release the Relay (client side) component of this?
GraphQL Working Draft
61–70 of 71 posts
Re: GraphQL Working Draft
#62I've been looking forward to this! One question; it appears as though the types and schema are passed with every request (eg https://github.com/graphql/graphql-js/blob/master/src/graphq... ) -- I assume part of the reason for this is versioning/sharing the schema, but is it always external, does the server ever know the schema a priori -- what's the thinking around this design decision? (It's a plausible idea! I'm ju…
Re: GraphQL Working Draft
#63Earlier quoted context omitted.
I'd suggest that you be wary of going down the route of making your API too flexible. It becomes very difficult to scale up a service that provides flexibility. Imagine a simple case where you're storing hundreds of records of users, and providing the flexibility to order by any field on the user, and of course, you're paginating those results. Now, scale up; you're storing tens of millions of those same record... ho…
> Imagine a simple case where you're storing hundreds of records of users, and providing the flexibility to order by any field on the user... You don't have to allow ordering by any field. You can define a list of fields that you can order by, and only allow those. I don't see the problem with doing that. But if you must allow ordering by any field... > Did you just create database indexes to support each of those us…
Re: GraphQL Working Draft
#64How does this fit in/differ from Netflix's Falcor? https://twitter.com/falcorjs
Falcor uses some different primitives to accomplish the task, focusing on connecting together Observables, whereas GraphQL queries are written in a small query language.
Falcor is a super interesting project and we've gotten to swap notes a couple times.
Re: GraphQL Working Draft
#65I've been looking forward to this! One question; it appears as though the types and schema are passed with every request (eg https://github.com/graphql/graphql-js/blob/master/src/graphq... ) -- I assume part of the reason for this is versioning/sharing the schema, but is it always external, does the server ever know the schema a priori -- what's the thinking around this design decision? (It's a plausible idea! I'm ju…
It's passed to that function in the reference implementation, but a server would probably create a helper function that runs a query for a particular schema. For example, you can just pass a query to Facebook's GraphQL endpoint (without specifying a schema), and it will run the query on the Facebook schema.
Re: GraphQL Working Draft
#66Why not have the query in JSON? Now you need a new parser. EDIT: Thanks for all the replies, all of them very good points, and clearly show that JSON is not the most elegant option for a complex DSL.
Re: GraphQL Working Draft
#67How does this fit in/differ from Netflix's Falcor? https://twitter.com/falcorjs
They are attempting to solve similar problems: describing data needs on a client in a way that integrates well with how the data is used, and fulfilling those requirements efficiently. Falcor uses some different primitives to accomplish the task, focusing on connecting together Observables, whereas GraphQL queries are written in a small query language. Falcor is a super interesting project and we've gotten to swap no…
Re: GraphQL Working Draft
#68Why not have the query in JSON? Now you need a new parser. EDIT: Thanks for all the replies, all of them very good points, and clearly show that JSON is not the most elegant option for a complex DSL.
Re: GraphQL Working Draft
#69Earlier quoted context omitted.
I think you mean falling back to "FQL," the old SQL-like syntax, since Flux is more of a client architecture thing (paired with GraphQL). FQL has some holdouts in legacy code, but the vast majority of the iOS app is using GraphQL. There are a bunch of tools built around using it, and it's the "right way" these days. Maybe a year or more ago ago, the notifications tab was using FQL. It makes sense to convert things si…
I think the OP meant Flux. I also read about it being used to store things that are not being persisted.
Re: GraphQL Working Draft
#70Lee Byron is talking about it at React Europe right now, here's the live stream (which supports play back): https://www.youtube.com/watch?v=UclvvqNtNNo