graphcool has built-in types, but I'd like to add ...
# prisma-whats-new
q
graphcool has built-in types, but I'd like to add custom types.
f
I’m sure this is possible you’ll need to add your Scalar to the root resolvers. However graphcool already has built in Datetime and Json Scalars. So you don’t need to add them yourself if you define a property as such. properties: Json! @default(value: “{}”) https://www.graph.cool/docs/reference/database/data-modelling-eiroozae8u#types
q
yeah, I think I got it solved more or less by just reading all strings and pass them to a function if necessary.
I'm not talking about Json and Datetime 😛
f
Aah I see my bad 🤗