smallrye-graphql icon indicating copy to clipboard operation
smallrye-graphql copied to clipboard

Scalar Input wrapper classes... `@FromScalar`?

Open t1 opened this issue 3 years ago • 1 comments
trafficstars

We use wrapper types to make different ids typesafe. We hide them from the GraphQL Schema by annotating them as @ToScalar. But this doesn't help for input types. We probably need an corresponding @FromScalar, so a JSON String can be converted to, e.g., our custom OrderId.

t1 avatar Nov 30 '21 17:11 t1

I think the new AdaptWith might help. I'll show it tomorrow

phillip-kruger avatar Nov 30 '21 18:11 phillip-kruger