You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Decimal scalar seems to be hard-coded as a primitive type in HotChocolate, but I want to configure it to be returned as a String I cannot really change the typename because I'm writting a stub for Shopify api and I would like to reproduce this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
The
Decimal
scalar seems to be hard-coded as a primitive type in HotChocolate, but I want to configure it to be returned as aString
I cannot really change the typename because I'm writting a stub for Shopify api and I would like to reproduce thishttps://shopify.dev/docs/api/admin-graphql/2024-10/scalars/Decimal
If I try to use my custom
Decimal
type I'm getting an error that this type is already declared.How can I achieve this without typing the things as
string
.This is supported in StrawberryShake by adding a custom Serializer and the following extensions, but I cannot find how to this in Hot Chocolate.
Beta Was this translation helpful? Give feedback.
All reactions