File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ Then, serve the result of a query against that type schema.
98
98
``` python
99
99
from graphql import graphql_sync
100
100
101
- query = ' { hello }'
101
+ source = ' { hello }'
102
102
103
- print (graphql_sync(schema, query ))
103
+ print (graphql_sync(schema, source ))
104
104
```
105
105
106
106
This runs a query fetching the one field defined, and then prints the result:
@@ -115,9 +115,9 @@ semantically valid before executing it, reporting errors otherwise.
115
115
``` python
116
116
from graphql import graphql_sync
117
117
118
- query = ' { BoyHowdy }'
118
+ source = ' { BoyHowdy }'
119
119
120
- print (graphql_sync(schema, query ))
120
+ print (graphql_sync(schema, source ))
121
121
```
122
122
123
123
Because we queried a non-existing field, we will get the following result:
You can’t perform that action at this time.
0 commit comments