Skip to content

Commit 15ab859

Browse files
committed
Add toString() method in ArgumentValue
Closes gh-1196
1 parent e179030 commit 15ab859

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-graphql/src/main/java/org/springframework/graphql/data/ArgumentValue.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ public int hashCode() {
112112
return result;
113113
}
114114

115+
@Override
116+
public String toString() {
117+
String v = ((this.value != null) ? this.value.toString() : (this.omitted) ? "omitted" : "empty");
118+
return "ArgumentValue[" + v + "]";
119+
}
120+
115121

116122
/**
117123
* Static factory method for an argument value that was provided, even if

0 commit comments

Comments
 (0)