How to create a Graphql object from a struct

I have a struct with option and I want to convert it in a GraphQL object

How can I do as the GraphQLObject derive is not working due to BigDecimal in my struct
Thank you in advance

What library are you using?

The general solution is to have a scalar that is a newtype around BigDecimal.