Typing `varchar` with a type reference instead of `enum` value
using varchar and enum in the docs:
makes using an external value as
enum
a bit complex. and requires me to import an actual runtime value, even though it's not being used.
this value would not be used in runtime, but only in dev / build type when types matter.
I think it's better to type these fields with a type statement:
is there an elegant way to do it?
I could as a workaround use
but this feels very hacky, any thoughts? suggestions?0 Replies