Extended GraphQLProjection to allow setting custom InputValueSerializer per thread.
This change will allow to use any scalars with DgsClient client and setup them once.
@Test
fun test() {
InputValueSerializerProvider.serializer = InputValueSerializer(
mapOf(UUID::class.java to UUIDScalar.INSTANCE.coercing)
)
/* line below would fail before */
val query = DgsClient.buildQuery {
movies(filter = UUID.randomUUID())
}
}
Extended
GraphQLProjection
to allow setting customInputValueSerializer
per thread. This change will allow to use any scalars with DgsClient client and setup them once.closes #455