Closed litewarp closed 2 years ago
Many thanks for raising this bug report @litewarp. :bug: We will now attempt to reproduce the bug based on the steps you have provided.
Please ensure that you've provided the necessary information for a minimal reproduction, including but not limited to:
If you have a support agreement with Neo4j, please link this GitHub issue to a new or existing Zendesk ticket.
Thanks again! :pray:
We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @litewarp! :pray: We will now prioritise the bug and address it appropriately.
Found this while working on the global node PR. On the
dev
branch which uses the cypher builder, if you connectOrCreate a relationship, it does not respect the direction.Example TypeDefs (pared down from my schema)
Using the OGM, run the following mutation:
The cypher should have the merge statement with the correct arrows like
MERGE (this_opportunity)<-[:IS_INVESTOR_IN]-(organization:Organization)
But the returned cypher has the relationship reversed:
I think it is due to the CypherBuilder Relationship module only implementing relationships in one direction: