graphcool has built-in types, but I'd like to add custom types.
f
Futurekam
02/22/2018, 12:43 PM
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
qsys
02/22/2018, 1:39 PM
yeah, I think I got it solved more or less by just reading all strings and pass them to a function if necessary.