Skip to content

Commit b969a9d

Browse files
committed
Update doc examples to reflect the docs for JavaScript
Replicates graphql/graphql-js@36f068e
1 parent 86a9145 commit b969a9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ Then, serve the result of a query against that type schema.
9898
```python
9999
from graphql import graphql_sync
100100

101-
query = '{ hello }'
101+
source = '{ hello }'
102102

103-
print(graphql_sync(schema, query))
103+
print(graphql_sync(schema, source))
104104
```
105105

106106
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.
115115
```python
116116
from graphql import graphql_sync
117117

118-
query = '{ BoyHowdy }'
118+
source = '{ BoyHowdy }'
119119

120-
print(graphql_sync(schema, query))
120+
print(graphql_sync(schema, source))
121121
```
122122

123123
Because we queried a non-existing field, we will get the following result:

0 commit comments

Comments
 (0)