Skip to content

Commit 28af3bb

Browse files
EmmanuelPonnuduraijoemcbride
authored andcommitted
Getting error with the existing query structure (graphql-dotnet#768)
The Query property has the string without the curly braces, which does not work and leads to an error as shown below, { "errors": [ { "message": "Syntax Error GraphQL (1:1) Unexpected Name \"hero\"\n1: hero { id name }\n ^\n", "code": "SYNTAX_ERROR" } ] }
1 parent 788fb70 commit 28af3bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs2/site/docs/getting-started/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public class Program
155155
var json = schema.Execute(_ =>
156156
{
157157
_.Schema = schema;
158-
_.Query = "hero { id name }";
158+
_.Query = "{ hero { id name } }";
159159
});
160160

161161
Console.WriteLine(json);

0 commit comments

Comments
 (0)