-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypher filtering 1 to 1 relationships #5723
Cypher filtering 1 to 1 relationships #5723
Conversation
🦋 Changeset detectedLatest commit: 51d9a45 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Performance ReportNo Performance Changes Show Full Table
Old Schema Generation: 29.453s |
packages/graphql/src/schema-model/attribute/model-adapters/AttributeAdapter.ts
Outdated
Show resolved
Hide resolved
Maybe worth double check by @MacondoExpress as I've contributed to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I left some comments!
packages/graphql/src/schema-model/attribute/AttributeTypeHelper.ts
Outdated
Show resolved
Hide resolved
packages/graphql/src/translate/queryAST/ast/filters/CypherRelationshipFilter.ts
Outdated
Show resolved
Hide resolved
...phql/tests/integration/directives/cypher/filtering/cypher-filtering-relationship.int.test.ts
Outdated
Show resolved
Hide resolved
packages/graphql/tests/tck/directives/cypher/filtering/cypher-filtering-relationship.test.ts
Outdated
Show resolved
Hide resolved
Also cleaned up the filter by passing in an isNull property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…lationships Cypher filtering 1 to 1 relationships (cherry picked from commit d40590e)
Description
This PR adds the ability to filter on 1 to 1 relationship cypher fields. A contrived example:
Type definitions:
You can now query with a filter based on the
directed
field:Complexity
Medium
Issue
Relates to #554, but not fully closing as this does not n to n relationship fields.
Checklist
The following requirements should have been met (depending on the changes in the branch):