Skip to content

Comments

removes apoc from our cypher query#83

Closed
cbizon wants to merge 1 commit intomainfrom
no_apoc
Closed

removes apoc from our cypher query#83
cbizon wants to merge 1 commit intomainfrom
no_apoc

Conversation

@cbizon
Copy link
Contributor

@cbizon cbizon commented Jun 26, 2025

APOC was used in our queries to collect the distinct nodes and edges from a query by using asSet.

This has now been replaced with an UNWIND and COLLECT DISTINCT.

It's done in a subquery both because it's slightly more readable, but mostly to handle the case where no edges are returned. (the unwind in that case produces a None which borks a simpler query)

@cbizon cbizon requested a review from EvanDietzMorris June 26, 2025 20:01
@cbizon
Copy link
Contributor Author

cbizon commented Jun 26, 2025

Note that there's still a little apoc in the neo4j loading code, but I think we can live with that.

@EvanDietzMorris
Copy link
Collaborator

this was superseded by #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants