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 0aaf829 commit dfe6e5eCopy full SHA for dfe6e5e
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