File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,9 @@ private String convertImpl(Object input) {
278278 if (input instanceof UUID ) {
279279 return String .valueOf (input );
280280 }
281+ if (input instanceof BigInteger ) {
282+ return String .valueOf (input );
283+ }
281284 return null ;
282285
283286 }
Original file line number Diff line number Diff line change @@ -42,10 +42,11 @@ class ScalarsIDTest extends Specification {
4242 Scalars.GraphQLID . getCoercing(). parseValue(value) == result
4343
4444 where :
45- value | result
46- " 123ab" | " 123ab"
47- 123 | " 123"
48- 123123123123123123L | " 123123123123123123"
45+ value | result
46+ " 123ab" | " 123ab"
47+ 123 | " 123"
48+ 123123123123123123L | " 123123123123123123"
49+ new BigInteger (" 123123123123123123" ) | " 123123123123123123"
4950 UUID . fromString(" 037ebc7a-f9b8-4d76-89f6-31b34a40e10b" ) | " 037ebc7a-f9b8-4d76-89f6-31b34a40e10b"
5051 }
5152
You can’t perform that action at this time.
0 commit comments