Skip to content

Commit

Permalink
Generate non-list relationship filters if array filters disabled (#5440)
Browse files Browse the repository at this point in the history
* Generate non-list relationship filters if array filters disabled

* Fix test description
  • Loading branch information
darrellwarde authored Aug 7, 2024
1 parent 77e453d commit cfcc474
Show file tree
Hide file tree
Showing 3 changed files with 417 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cool-wasps-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@neo4j/graphql": patch
---

Generate filters for non-list relationship fields if deprecated array filters have been excluded
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function augmentWhereInputType({
return fields;
}

if (shouldAddDeprecatedFields(features, "arrayFilters")) {
if (!relationshipAdapter.isList || shouldAddDeprecatedFields(features, "arrayFilters")) {
fields[fieldName] = {
type: whereType,
};
Expand Down
Loading

0 comments on commit cfcc474

Please sign in to comment.