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 c9f0398 commit eb81b34Copy full SHA for eb81b34
functions.js
@@ -1,8 +1,4 @@
1
-
2
-/**
3
- * Example code in the functions should be replaced with code specific to the
4
- * back-end used.
5
- */
+const _ = require('lodash');
6
7
//Representation of a node, unique to the back-end
8
function Node(x, y) {
@@ -19,7 +15,7 @@ Node.prototype.equals = function(obj) {
19
15
20
16
//Return a new instance of a Node object, unique representation of the root node
21
17
var getRootNode = (db, queryType) => {
22
- return new Node(0, queryType);
18
+ return new Node(0, queryType.name);
23
};
24
25
//Return the type of the given node, output should be a GraphQLType object
0 commit comments