Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Fix for issue #446 #469

Merged
merged 2 commits into from
Jul 8, 2020
Merged

Fix for issue #446 #469

merged 2 commits into from
Jul 8, 2020

Conversation

michaeldgraham
Copy link
Collaborator

This PR contains an initial fix for issue #446

Removes decideRelationTypeDirection as a result of refactoring the decision it was making when filtering the incoming direction of a relationship type. It had an undefined input argument for such cases, so a comparison was failing to ever result in swapping the variables for .from / .to nodes and reversing the relationship direction. This is done due to the use of a more static template once these variables get used to produce Cypher.

Also removes a few unused function arguments
Issue #446 occured when filtering incoming relationships through a relationship type. This case was not tested in the TCK. Only outgoing cases were tested when querying from Person to Company, filtering over the `Person.employmentHistory` field.

So a new test has been added that covers the reverse, querying from Company to Person, filtering over the `Company.employeeHistory` field.
@johnymontana johnymontana merged commit 6e7a357 into neo4j-graphql:master Jul 8, 2020
steezeburger added a commit to Maya-PBC/neo4j-graphql-js that referenced this pull request Jul 10, 2020
* upstream/master:
  2.14.4
  update changelog
  npm audit fix
  Don't use string for relationship direction in relation directive
  Fix for issue neo4j-graphql#446 (neo4j-graphql#469)
  2.14.3
  update changelog
  Fixes neo4j-graphql#465: Temporal and spatial identity filters (neo4j-graphql#466)
  Fix for relationship types using federated entities (neo4j-graphql#441)
  Add 4.1 to integration tests
  Add initial support for bookmarks
  Add integration tests for Neo4j v4.0.3 version
  Test with latest Neo4j and APOC
  Test with latest Neo4j v4.x and APOC versions
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants