-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1596 from gentics/hotfix-2.0.x-sup-16448
SUP-16448: Get back common filters
- Loading branch information
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GraphQL: A regression of missing common `and`, `or`, `not` top level filters has been fixed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
tests/tests-core/src/main/resources/graphql/nodes-query-by-uuids-common-filters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
orNodes: nodes( uuids: [ "43ee8f9ff71e4016ae8f9ff71e10161c", "4b1346a2163a4ff89346a2163a9ff883" ] | ||
filter: {uuid: { or: [{equals: "43ee8f9ff71e4016ae8f9ff71e10161c"},{equals: "4b1346a2163a4ff89346a2163a9ff883"}] }} | ||
) { | ||
# [$.data.orNodes.totalCount=2] | ||
totalCount | ||
|
||
elements { | ||
# [$.data.orNodes.elements[0].uuid=43ee8f9ff71e4016ae8f9ff71e10161c] | ||
# [$.data.orNodes.elements[1].uuid=4b1346a2163a4ff89346a2163a9ff883] | ||
uuid | ||
} | ||
} | ||
oneOfNodes: nodes( uuids: [ "43ee8f9ff71e4016ae8f9ff71e10161c", "4b1346a2163a4ff89346a2163a9ff883" ] | ||
filter: {uuid: { oneOf: ["43ee8f9ff71e4016ae8f9ff71e10161c", "4b1346a2163a4ff89346a2163a9ff883"] }} | ||
) { | ||
# [$.data.oneOfNodes.totalCount=2] | ||
totalCount | ||
|
||
elements { | ||
# [$.data.oneOfNodes.elements[0].uuid=43ee8f9ff71e4016ae8f9ff71e10161c] | ||
# [$.data.oneOfNodes.elements[1].uuid=4b1346a2163a4ff89346a2163a9ff883] | ||
uuid | ||
} | ||
} | ||
andNodes: nodes( uuids: [ "43ee8f9ff71e4016ae8f9ff71e10161c", "4b1346a2163a4ff89346a2163a9ff883" ] | ||
filter: {uuid: { and: [{equals: "43ee8f9ff71e4016ae8f9ff71e10161c"},{equals: "4b1346a2163a4ff89346a2163a9ff883"}] }} | ||
) { | ||
# [$.data.andNodes.totalCount=0] | ||
totalCount | ||
|
||
elements { | ||
uuid | ||
} | ||
} | ||
notNodes: nodes( uuids: [ "43ee8f9ff71e4016ae8f9ff71e10161c", "4b1346a2163a4ff89346a2163a9ff883" ] | ||
filter: {uuid: { not: {equals: "4b1346a2163a4ff89346a2163a9ff883"}}} | ||
) { | ||
# [$.data.notNodes.totalCount=1] | ||
totalCount | ||
|
||
elements { | ||
# [$.data.notNodes.elements[0].uuid=43ee8f9ff71e4016ae8f9ff71e10161c] | ||
uuid | ||
} | ||
} | ||
} | ||
# [$.errors=<is-undefined>] |