|
|
|
|
|
by thelazydogsback
3243 days ago
|
|
Why doesn't GraphQL just define semantics over what is JSON syntactically so existing tools and parsers are sufficient? It's already so close to JSON, why use parens and strings containing emedded JSON? E.g., instead of: {
"query": "repository(owner:\"zapier\", name:\"transformer\") {
id
description
}"
}
use something like: {
"query": {target: "repository", owner:"zapier", name:"transformer", [
"id",
"description"
]}}
}
|
|