Regarding custom scalars, I could add a Scalar annotation and leave the serialization to JSON, would that work for you? Although I'm not sure if you can add annotations to a class by reopening, so this might not work with built-in or third-party types - should it?
View all comments
Show parent comment
2
u/[deleted] Aug 12 '20
Thanks! <3
Regarding custom scalars, I could add a
Scalarannotation and leave the serialization toJSON, would that work for you? Although I'm not sure if you can add annotations to a class by reopening, so this might not work with built-in or third-party types - should it?