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.
2 parents 0aaf829 + dfe6e5e commit 6dfda7cCopy full SHA for 6dfda7c
src/content/code/language-support/javascript/server/graphql-js.md
@@ -23,9 +23,11 @@ var schema = buildSchema(`
23
}
24
`);
25
26
-var root = { hello: () => 'Hello world!' };
+var rootValue = { hello: () => 'Hello world!' };
27
28
-graphql(schema, '{ hello }', root).then((response) => {
+var source = '{ hello }';
29
+
30
+graphql({ schema, source, rootValue }).then((response) => {
31
console.log(response);
32
});
33
```
0 commit comments