News for hackers. Stuff that matters.
Re:GraphQL: A data query language by rattray on Monday September 14, 2015 @07:34PM (#10218159)
I keep hearing people say things along the lines of, "Relay looks great, but I don't want to store my data in a graph". My impression is that GraphQL has nothing to do with graphs, really - it's a bit more like SchemaQL if anything. Could someone from the facebook team clarify about the name?
Re:GraphQL: A data query language by dschafer on Monday September 14, 2015 @07:42PM (#10218180)
Yep, GraphQL is agnostic as to how your data is stored. For example, https://github.com/graphql/swapi-graphql/ is a GraphQL schema that is backed by the swapi.co API. The examples at https://github.com/graphql/graphql-js/blob/master/src/__test... are backed by in-memory JSON objects. At Facebook, we have GraphQL types backed by data stored in a number of backends, including types backed by SQL tables.
Re:GraphQL: A data query language by iandanforth on Monday September 14, 2015 @07:53PM (#10218214)
I'd like to read more about the backing data stores. If you're aggregating data across a lot of different stores, it seems you could easily add what looks like a tiny piece of data to your query, but, in truth, is much more expensive on the backend.
Re:GraphQL: A data query language by TheMakeA on Monday September 14, 2015 @09:23PM (#10218484)
It's important to realize that you're essentially defining an API for your product. If something is expensive to access, you should either not expose it directly through your API, or add appropriate levels of caching to mitigate the costs.
Re:GraphQL: A data query language by nathancahill on Monday September 14, 2015 @07:59PM (#10218231)
Even if your data isn't stored in a graph, it can be queried hierarchically, like a graph. Hence the name, GraphQL (as opposed to GraphDB).
Re:GraphQL: A data query language by forgotAgain on Tuesday September 15, 2015 @10:16AM (#10220749)
It seems that the graph part is referring to how the input is evaluated one node at a time and applied to the output. The sub objects (child nodes) of the input are evaluated and then applied to the output. It's a graph in the sense that it's a tree being evaluated and built. I would think it's pretty optimal if you're using nosql stores that are cached heavily with good locality of data and you can send the request to the right server based on the first node of the input.
Re:GraphQL: A data query language by pluma on Tuesday September 15, 2015 @05:52AM (#10219743)
It's not about graph databases but it is about graph data.

But at the end of the day, most data can be considered graph data. It doesn't have to be represented as a formal graph.