Skip to content

Commit 1fab48b

Browse files
committed
Corrected some minor stuff
1 parent 8e28858 commit 1fab48b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

graphql-server/drivers/arangodb/driver.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ async function create(isRoot, ctxt, data, returnType, info) {
396396
key = Object.keys(value)[1];
397397
}
398398
let typeToCreate = key.replace(/^create(.+)$/, '$1');
399-
let to = asAQLVar(getVar(ctxt)); // reference to the object to be addedd
399+
let to = asAQLVar(getVar(ctxt)); // reference to the object to be added
400400
await create(false, ctxt, value[key], info.schema.getType(typeToCreate), info);
401401
ctxt.trans.code.push(`db._query(aql\`INSERT {_from: ${from}._id, _to: ${to}._id ${getAnnotations(annotations)}} IN ${edgeCollection} RETURN NEW\`);`);
402402
}
@@ -410,10 +410,9 @@ async function create(isRoot, ctxt, data, returnType, info) {
410410
ctxt.trans.code.push(`} else { `);
411411
ctxt.trans.code.push(` throw "${value['connect']} does not exist in ${typeToConnect}";`);
412412
ctxt.trans.code.push(`}`);
413-
} else {//
413+
} else { // create
414414
let to = asAQLVar(getVar(ctxt)); // reference to the object to be added
415415
await create(false, ctxt, value['create'], innerFieldType, info);
416-
console.log(innerFieldType.name);
417416
ctxt.trans.code.push(`db._query(aql\`INSERT {_from: ${from}._id, _to: ${to}._id ${getAnnotations(annotations)}} IN ${edgeCollection} RETURN NEW\`);`);
418417
}
419418
}

0 commit comments

Comments
 (0)