We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
To use custom scalar types, you need to provide implementations for parseValue and serialize respectively and associate them with ENUM type.
parseValue
serialize
ENUM
type instance KIND Euro = SCALAR data Euro = Euro Int Int deriving (Generic, GQLType) instance GQLScalar Odd where parseValue (Int x) = pure $ Euro (... ) parseValue (String x) = pure $ Euro (... ) serialize (Euro euro cent) = Int (euro * 100) ++ cent