News for hackers. Stuff that matters.
Re:Sangria – Scala GraphQL Implementation by ddispaltro on Friday September 11, 2015 @04:29AM (#10202592)
GraphQL (and falcor) was created for exactly this reason, combining data from disparate sources, making it easy to get what you want from the frontend.
Re:Sangria – Scala GraphQL Implementation by Ciantic on Friday September 11, 2015 @05:38AM (#10202773)
I know, and in front-end they are great, I was talking about this implementation from back-end point of view in Scala.

This implementation requires one to write schema, that is in many ways (maybe fully) identical to your database schema e.g. Slick schema thus you have to write it twice. It would be a better to infer the GraphQL schema from Slick/database schema.

Re:Sangria – Scala GraphQL Implementation by leebyron on Monday September 14, 2015 @04:47AM (#10214152)
In practice, it's actually pretty rare for a GraphQL schema (exposed to clients) to be identical to a database schema which often has admin-only columns or database-specific idiosyncrasies like SQL join tables that you would opt to expose differently to a client.

That being said, there's a lot of low hanging fruit for building a GraphQL schema "generator" libraries for various backing databases - while some things are likely to change, it's quite nice to just apply those edits rather than building up a near-parallel schema again.

Re:Sangria – Scala GraphQL Implementation by 15155 on Friday September 11, 2015 @10:19AM (#10203785)
For me, one of the best features of GraphQL is that you're able to completely hide/abstract away non-domain-models such as join tables.