Skip to content

Commit 7d4ded7

Browse files
author
Victor LOIZEL
committed
wip
1 parent 6b4872e commit 7d4ded7

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/main/java/issue/spring/graphql/objectlist/EntityFilterInput.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package issue.spring.graphql.objectlist;
22

33
public class EntityFilterInput {
4-
private String label;
4+
private String operator;
55
private Object value;
66

7-
public String getLabel() {
8-
return label;
7+
public String getOperator() {
8+
return operator;
99
}
1010

11-
public EntityFilterInput setLabel(String label) {
12-
this.label = label;
11+
public EntityFilterInput setOperator(String operator) {
12+
this.operator = operator;
1313
return this;
1414
}
1515

src/main/resources/graphql/schema.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ type Query {
99
}
1010

1111
input EntityFilterInput {
12-
label: String!
12+
operator: String!
1313
value: Object!
1414
}

src/test/java/issue/spring/graphql/objectlist/EntityControllerTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class EntityControllerTests {
2222
@Test
2323
void filterValueIsInstanceOfList_ok() {
2424
final Map<String, Object> value = Map.of(
25-
"label", "label",
25+
"operator", "operator",
2626
"value", "value"
2727
);
2828

@@ -54,7 +54,7 @@ void filterValueIsInstanceOfList_ko() {
5454
@Test
5555
void filterValueIsInstanceOfList_ko2() {
5656
final Map<String, Object> value = Map.of(
57-
"label", "label",
57+
"operator", "operator",
5858
"value", List.of("value1", "value2")
5959
);
6060

src/test/resources/graphql-test/filterValueIsInstanceOfList_withoutVariables.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
query {
22
filterValueIsInstanceOfList(filter: {
3-
label: "label",
3+
operator: "operator",
44
value: [
55
"value1",
66
"value2"

0 commit comments

Comments
 (0)