Skip to content

Commit dde9796

Browse files
tristanzleebyron
authored andcommitted
add comment section to language before comment use
1 parent ac2f86e commit dde9796

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Section 2 -- Language.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ refer to these requests as documents. A document may contain operations
55
(queries and mutations are both operations) and fragments, a common unit
66
of composition allowing for query reuse.
77

8+
## Comments
9+
10+
GraphQL source documents may contain single-line comments, starting with the
11+
{`#`} marker.
12+
13+
A comment can contain any Unicode code point except {LineTerminator} so a
14+
comment always consists of all code points starting with the {`#`} character up
15+
to but not including the end of the line.
16+
17+
Comments behave like white space and are ignored.
18+
819
## Names
920

1021
GraphQL documents are full of named things: operations, fields, arguments,

0 commit comments

Comments
 (0)