Skip to content

Commit 6dee7b1

Browse files
authored
Docs should specify # as comment symbol for GraphQL (#609)
Docs should specify `#` as comment symbol for GraphQL, currently specifies double quotations`""` According to the GraphQL spec, '#' are used for comments, not double quotes. See the spec on comments here: https://spec.graphql.org/October2021/#sec-Comments
1 parent 4c97bc9 commit 6dee7b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/pages/en/developing/creating-a-subgraph.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,11 @@ This more elaborate way of storing many-to-many relationships will result in les
422422

423423
#### Adding comments to the schema
424424

425-
As per GraphQL spec, comments can be added above schema entity attributes using double quotations `""`. This is illustrated in the example below:
425+
As per GraphQL spec, comments can be added above schema entity attributes using the hash symble `#`. This is illustrated in the example below:
426426

427427
```graphql
428428
type MyFirstEntity @entity {
429-
"unique identifier and primary key of the entity"
429+
# unique identifier and primary key of the entity
430430
id: Bytes!
431431
address: Bytes!
432432
}

0 commit comments

Comments
 (0)