Line Terminators
LineTerminator
New Line \(U+000A\)
Carriage Return \(U+000D\)
New Line \(U+000A\)
Carriage Return \(U+000D\)
New Line \(U+000A\)
Like white space, line terminators are used to improve the legibility of source text, any amount may appear before or after any other token and have no significance to the semantic meaning of a GraphQL query document. Line terminators are not found within any other token.
Any error reporting which provide the line number in the source of the offending syntax should use the preceding amount of LineTerminator to produce the line number.