Skip to content

Commit

Permalink
Remove limit on relationship introspection #5884
Browse files Browse the repository at this point in the history
(cherry picked from commit f234487)
  • Loading branch information
angrykoala committed Dec 16, 2024
1 parent d2d7756 commit 8c307bd
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 8c307bd

Please sign in to comment.