How to use JSON column type?
Hi. I'm new to Drizzle and 'm strugling with JSON column type.
Here is the example:
So far everything looks good. But I'm confused when selecting the JSON column name;
So the problem is that I get nice typescript support when selecting JSON column, because type is passed to
What am I missing?
Here is the example:
So far everything looks good. But I'm confused when selecting the JSON column name;
So the problem is that I get nice typescript support when selecting JSON column, because type is passed to
json().$type<>, but selected "name" is just a string which need to be parsed.What am I missing?