News for hackers. Stuff that matters.
Re:Sangria – Scala GraphQL Implementation by tristanz on Thursday September 10, 2015 @11:24PM (#10201855)
No. They're basically totally unrelated despite the name. GraphQL is a way to build and query a typed API that exposes nested resources. It's an alternative to REST. There is no graph computation happening. I'd view it as a more flexible version of REST with types.
Re:Sangria – Scala GraphQL Implementation by nicolewhite on Friday September 11, 2015 @10:15AM (#10203763)
"It is a query language for graph data..." is directly from their description.

https://facebook.github.io/react/blog/2015/05/01/graphql-int...

Re:Sangria – Scala GraphQL Implementation by tristanz on Friday September 11, 2015 @05:59PM (#10206402)
Yeah, except if you look closely at what GraphQL actually is that description is very misleading.

The spec has a better description: https://facebook.github.io/graphql/#sec-Overview

" GraphQL is a query language designed to build client applications by providing an intuitive and flexible syntax and system for describing their data requirements and interactions.

GraphQL is not a programming language capable of arbitrary computation, but is instead a language used to query application servers that have capabilities defined in this specification. GraphQL does not mandate a particular programming language or storage system for application servers that implement it. Instead, application servers take their capabilities and map them to a uniform language, type system, and philosophy that GraphQL encodes. This provides a unified interface friendly to product development and a powerful platform for tool‐building."

This is very different goal that most graph query languages.

Re:Sangria – Scala GraphQL Implementation by whazor on Friday September 11, 2015 @03:24AM (#10202396)
Why not? Maybe it is not possible currently, but what stops me from creating a graph databases optimised for these types of queries?

Currently a lot of research is being done on graph databases, and they can be potentially faster for queries that normally take a lot of joins.

Re:Sangria – Scala GraphQL Implementation by phpnode on Friday September 11, 2015 @04:54AM (#10202662)
Nothing stops you from integrating GraphQL with your graph database and I know that people are already working on it.

But it isn't a way to specify graph queries, e.g. you can't express concepts like "find the shortest path from vertex A to vertex B using edges with the given label". It's just not designed for that kind of thing.

Re:Sangria – Scala GraphQL Implementation by eranation on Thursday September 10, 2015 @11:45PM (#10201917)
Ah... Lots of promise in the name though :) I was optimistic.
Re:Sangria – Scala GraphQL Implementation by ci5er on Friday September 11, 2015 @12:37AM (#10202041)
It's very neat stuff (it saves on multiple round trips to collect just what your UI needs right now), but GraphQL isn't about graphs (although one of my primary use cases does use an underlying graph database), just like React isn't reactive.

I think Facebook's naming people do this on purpose. (j/k)