Hacker News new | ask | show | jobs
by ddorian43 3346 days ago
it uses json ? so you compare it to that
2 comments

The default is JSON, but the spec doesn't mandate that it be JSON over the wire, or that even that it be over HTTP.
Also in the Json the "query" is actually a string that is in GraphQL language. So GraphQL is an encoded format embedded inside Json.

{ "query": "mutation Foo() { ... }" }

As such type safety is dependent on the query langauge (graphQL) not Json. As far as the Json goes, it might as well be multi-part form encoded.