Add Currency default value handling
Please add feature to handle default values for Currency in GraphQL Schema.
Description:
We have defined a custom scalar for currency extending graphql-java-extended-scalars Currency scalar. A typemapping for the custom scalar is provided for the graphqlcodegen-maven-plugin as follows
<CustomCurrency>java.util.Currency</CustomCurrency>
An input type MoneyInput is defined in the graphql schema with a default value for currency input MoneyInput {
currency: CustomCurrency! = "USD"
value: Decimal!
}
The compilation give the following error: incompatible types: java.lang.String cannot be converted to java.util.Currency
Thanks for creating this issue. Will fix in the next release.
Released in DGS Codegen v8.0.0.