Re:GraphQL: A data query language
by bobbylox on Monday September 14, 2015 @09:19PM
(#10218468)
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...
[ Parent
| on HN ]
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.