Skip to content

Commit 627ba41

Browse files
committed
fix edge statement FE
1 parent a60ed9d commit 627ba41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forward_engineering/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const generateEdge = (from, to, relationship, edgeData) => {
9797
return `${from}.addE(${JSON.stringify(edgeName)}).\n${DEFAULT_INDENT}to(${to})${propertiesScript}`;
9898
};
9999

100-
const getVertexVariableScript = vertexName => `${graphName}.V().hasLabel(${JSON.stringify(vertexName)}).next()`;
100+
const getVertexVariableScript = vertexName => `${graphName}.V().hasLabel(${JSON.stringify(vertexName)})`;
101101

102102
const generateEdges = (collections, relationships, jsonData) => {
103103
const edges = relationships.reduce((edges, relationship) => {

0 commit comments

Comments
 (0)