You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please correct me if I missed it in the spec, but I haven't found a formal definition of the whitespace treatment combined with some of the tokens. For example in the detective definition. It's not 100% clear whether whitespace is allowed between @ and Name. The same is for the variable: can I put a whitespace between $ and the Name like this?
$ myVariable
Intuition tells me that in most cases whitespaces are allowed, so query like this:
query , FetchLukeAndLeiaAliased{
luke:human(id : 2.1e-7) {
name,
}
leia , : human ,,, ( , id ,, : ,, "10103") {
name
}
}
is a valid query and should be parsed without any errors. Is my assumption correct?
The text was updated successfully, but these errors were encountered:
You're correct. Anything defined as a token grammar (consumes characters) is sensitive to whitespace (eg, string and number literals). Anything defined as a syntax grammar (consumes tokens) is not sensitive to whitespace or other ignored characters.
Please correct me if I missed it in the spec, but I haven't found a formal definition of the whitespace treatment combined with some of the tokens. For example in the detective definition. It's not 100% clear whether whitespace is allowed between
@
andName
. The same is for the variable: can I put a whitespace between$
and theName
like this?Intuition tells me that in most cases whitespaces are allowed, so query like this:
is a valid query and should be parsed without any errors. Is my assumption correct?
The text was updated successfully, but these errors were encountered: