From 56aeeab5fd322698a54b89c213bd71420a0d4b80 Mon Sep 17 00:00:00 2001 From: Ben Jett <65641593+BCJdevelopment@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:22:10 -0700 Subject: [PATCH] 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 --- website/pages/en/developing/creating-a-subgraph.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/pages/en/developing/creating-a-subgraph.mdx b/website/pages/en/developing/creating-a-subgraph.mdx index fc06fc8e9e8c..46b44baa2680 100644 --- a/website/pages/en/developing/creating-a-subgraph.mdx +++ b/website/pages/en/developing/creating-a-subgraph.mdx @@ -402,11 +402,11 @@ This more elaborate way of storing many-to-many relationships will result in les #### Adding comments to the schema -As per GraphQL spec, comments can be added above schema entity attributes using double quotations `""`. This is illustrated in the example below: +As per GraphQL spec, comments can be added above schema entity attributes using the hash symble `#`. This is illustrated in the example below: ```graphql type MyFirstEntity @entity { - "unique identifier and primary key of the entity" + # unique identifier and primary key of the entity id: Bytes! address: Bytes! }