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
71
71
Then, serve the result of a query against that type schema.
72
72
73
73
``` js
74
- var query = ' { hello }' ;
74
+ var source = ' { hello }' ;
75
75
76
- graphql (schema, query ).then ((result ) => {
76
+ graphql ({ schema, source } ).then ((result ) => {
77
77
// Prints
78
78
// {
79
79
// data: { hello: "world" }
@@ -87,9 +87,9 @@ first ensure the query is syntactically and semantically valid before executing
87
87
it, reporting errors otherwise.
88
88
89
89
``` js
90
- var query = ' { BoyHowdy }' ;
90
+ var source = ' { BoyHowdy }' ;
91
91
92
- graphql (schema, query ).then ((result ) => {
92
+ graphql ({ schema, source } ).then ((result ) => {
93
93
// Prints
94
94
// {
95
95
// errors: [
You can’t perform that action at this time.
0 commit comments