Skip to content

Commit eb81b34

Browse files
Add lodash
1 parent c9f0398 commit eb81b34

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

functions.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
*/
1+
const _ = require('lodash');
62

73
//Representation of a node, unique to the back-end
84
function Node(x, y) {
@@ -19,7 +15,7 @@ Node.prototype.equals = function(obj) {
1915

2016
//Return a new instance of a Node object, unique representation of the root node
2117
var getRootNode = (db, queryType) => {
22-
return new Node(0, queryType);
18+
return new Node(0, queryType.name);
2319
};
2420

2521
//Return the type of the given node, output should be a GraphQLType object

0 commit comments

Comments
 (0)