We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc3564a commit 36f068eCopy full SHA for 36f068e
README.md
@@ -71,9 +71,9 @@ or an array of promises. A more complex example is included in the top-level [te
71
Then, serve the result of a query against that type schema.
72
73
```js
74
-var query = '{ hello }';
+var source = '{ hello }';
75
76
-graphql(schema, query).then((result) => {
+graphql({ schema, source }).then((result) => {
77
// Prints
78
// {
79
// data: { hello: "world" }
@@ -87,9 +87,9 @@ first ensure the query is syntactically and semantically valid before executing
87
it, reporting errors otherwise.
88
89
90
-var query = '{ BoyHowdy }';
+var source = '{ BoyHowdy }';
91
92
93
94
95
// errors: [
0 commit comments