Skip to content

Commit

Permalink
Merge pull request #5891 from neo4j/5884-lts
Browse files Browse the repository at this point in the history
Remove limit on relationship introspection #5884
  • Loading branch information
angrykoala authored Dec 16, 2024
2 parents b125790 + 8c307bd commit 7b4f90a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/afraid-spoons-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j/introspector": patch
---

Remove limit on relationships introspection
1 change: 0 additions & 1 deletion packages/introspector/src/to-internal-struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ async function introspectRelationships(sessionFactory: () => Session): Promise<R
const relationshipsRes = await conSession.readTransaction((tx) =>
tx.run(`
MATCH (n)-[r:${escapedType}]->(m)
WITH n, r, m LIMIT 100
WITH DISTINCT labels(n) AS from, labels(m) AS to
WITH from, to WHERE SIZE(from) > 0 AND SIZE(to) > 0
RETURN from, to, "${relType.replace(/"/g, '\\"')}" AS relType`)
Expand Down

0 comments on commit 7b4f90a

Please sign in to comment.