We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 943d56e commit 0abcc47Copy full SHA for 0abcc47
2 files changed
src/main/java/graphql/Scalars.java
@@ -13,6 +13,7 @@
13
14
import java.math.BigDecimal;
15
import java.math.BigInteger;
16
+import java.util.UUID;
17
18
import static graphql.Assert.assertShouldNeverHappen;
19
@@ -274,6 +275,9 @@ private String convertImpl(Object input) {
274
275
if (input instanceof Long) {
276
return String.valueOf(input);
277
}
278
+ if (input instanceof UUID) {
279
+ return String.valueOf(input);
280
+ }
281
return null;
282
283
src/test/groovy/graphql/ScalarsIDTest.groovy
@@ -46,6 +46,7 @@ class ScalarsIDTest extends Specification {
46
"123ab" | "123ab"
47
123 | "123"
48
123123123123123123L | "123123123123123123"
49
+ UUID.fromString("037ebc7a-f9b8-4d76-89f6-31b34a40e10b") | "037ebc7a-f9b8-4d76-89f6-31b34a40e10b"
50
51
52
@Unroll
0 commit comments