In GraphQL, white space appears to be significant since it separates tokens:
{
human(id: "1000") {
name
height
}
}
However, the spec says that white space is not significant, and doesn't specify how tokens, names, and so forth are separated.
I think newlines might be critical in separating name and height in the above example. Is it valid to delete the newline and have them on the same line, separated by a space or tab? I assume the indentation is insignificant? Is this valid GraphQL, and is it exactly equivalent to the above?:
{human(id: "1000") {name height}}
Obviously, it would break if we eliminated the space between name and height, so spaces seem to matter. Since GraphQL doesn't use commas, should the spec specify that white space is significant?