Hacker News new | ask | show | jobs
by bobbylox 3936 days ago
Why invent syntax when you can specify the queries in JSON, too? MQL did it, and it was amazing: http://wiki.freebase.com/images/e/e0/MQLcheatsheet-081208.pd...
2 comments

The GraphQL language syntax is useful because it naturally expresses more patterns than JSON can. However GraphQL is eventually parsed into an AST which is represented as JSON, it's always possible to write that JSON directly.

Ultimately syntax is useful to express domain-specific concepts in a terse way.

I still dream of the day that freebase's graphd or something like it is released. That was a really nice eco-system.