Skip to content

Commit

Permalink
fix: remove carret for dual-sided relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
danlannan777 committed May 14, 2024
1 parent 57bc685 commit aed1e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/Neo4j/defineNeo4jLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const defineNeo4jLayer = <
return await tx.run<{
toNode: Node<Integer, UixNode<typeof toNodeType, TypeOf<(N[number] & { nodeType: typeof toNodeType })['stateDefinition']>>>
}>(`
MATCH (fromNode:${nodeType} {nodeId: $fromNodeId})-[:${relationshipType as string}]->(toNode:${toNodeType})
MATCH (fromNode:${nodeType} {nodeId: $fromNodeId})-[:${relationshipType as string}]-(toNode:${toNodeType})
RETURN toNode
`, { fromNodeId: nodeId })
}).then(({ records }) => {
Expand Down

0 comments on commit aed1e28

Please sign in to comment.