[object Object] on custom type
Using Turso
I have this column definition:
information: text('information').$type<MeritInformation>(),
Where the type is defined by:
However, when I insert data in the column:
The content of information
is [object Object]
2 Replies
Try
text('information', { mode: 'json' }).$type<MeritInformation>()
@Sillvva It worked!!!
Thank you so much 🎉