© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
2 replies
Martin Carlsson

[object Object] on custom type

Using Turso

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


Where the type is defined by:
type MeritInformation = {
    title: string;
};
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();
    const insert = await db
        .insert(meritsTable)
        .values({ type: 2, userId: 1, slug: 'test23', information: { title: 'test' } })
        .execute();


The content of
information
information
is
[object Object]
[object Object]
image.png
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom `Select` object returns type `any`
Drizzle TeamDTDrizzle Team / help
3y ago
Modify Table type object
Drizzle TeamDTDrizzle Team / help
2y ago
Custom column type
Drizzle TeamDTDrizzle Team / help
16mo ago
Get type from select object ?
Drizzle TeamDTDrizzle Team / help
2y ago