from Hacker News

Sangria – Scala GraphQL Implementation

by kolev on 9/10/15, 11:29 PM with 21 comments

  • by eranation on 9/11/15, 3:07 AM

    A naive question here. (I'm in a bar and didn't fully read the docs): how can I leverage GraphQL (or sangria in specific) to existing graph databases / computation engines. Namely: is there a way to implement a GraphQL adapter for GraphX (Spark's graph library) or Titan / Neo4j? From a first glance GraphQL looks better than Gremlin (no offense)

    Can I treat GraphQL as going toward being a "better tinker pop"? If not than what are the use cases for GraphQL in the context of existing graph databases?

  • by vimes656 on 9/11/15, 1:49 PM

    Is this using the Facebook GraphQL C bindings? If not, what's the advantage of a full reimplementation in Scala?

    I'm not implying that the bindings should have been used. I'm now considering writing a implementation of GraphQL in Haskell and I'm trying to assess whether it's worth using the Facebook C bindings or it's better to implement the whole protocol from scratch.

  • by Ciantic on 9/11/15, 7:30 AM

    I think this is trying to be a DB agnostic, but I don't think it's a good way to approach this.

    One reason is that you have to have a schema defined for database already e.g. using Slick, it should be reusable for GraphQL schema as is. Having same schema defined several times is pain.

  • by graffitici on 9/11/15, 8:21 AM

    Excellent package! Speaks very highly of code quality in the Scala ecosystem. It's documentation also seems far superior than that of Scala, the language, or the Play framework. I wish they get to improve those as well..
  • by morenoh149 on 9/11/15, 4:25 AM

    related https://github.com/joshprice/graphql-elixir an elixir implementation of graphql I've been watching