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 @@ -71,9 +71,9 @@ or an array of promises. A more complex example is included in the top-level [te
7171Then, serve the result of a query against that type schema.
7272
7373``` js
74- var query = ' { hello }' ;
74+ var source = ' { hello }' ;
7575
76- graphql (schema, query ).then ((result ) => {
76+ graphql ({ schema, source } ).then ((result ) => {
7777 // Prints
7878 // {
7979 // data: { hello: "world" }
@@ -87,9 +87,9 @@ first ensure the query is syntactically and semantically valid before executing
8787it, reporting errors otherwise.
8888
8989``` js
90- var query = ' { BoyHowdy }' ;
90+ var source = ' { BoyHowdy }' ;
9191
92- graphql (schema, query ).then ((result ) => {
92+ graphql ({ schema, source } ).then ((result ) => {
9393 // Prints
9494 // {
9595 // errors: [
You can’t perform that action at this time.
0 commit comments