[object Object] on custom type

Using Turso

I have this column definition:
information: text('information').$type<MeritInformation>(),

Where the type is defined by:
type MeritInformation = {
    title: string;
};


However, when I insert data in the column:
    const insert = await db
        .insert(meritsTable)
        .values({ type: 2, userId: 1, slug: 'test23', information: { title: 'test' } })
        .execute();


The content of information is [object Object]
image.png
Was this page helpful?