© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•4mo ago
Esperida

Seed refine custom data

Hi, someone know if it exist a way to use drizzle-seed with Refinements to generate a Jsonb in a specific format

for exemple
seed(db, {
  usersTable,
}).refine((faker) => ({
  usersTable: {
    columns: {
      nameTR: faker.json(),
    },
  },
}));
seed(db, {
  usersTable,
}).refine((faker) => ({
  usersTable: {
    columns: {
      nameTR: faker.json(),
    },
  },
}));

but ensure the faker to always generate nameTR as type of
{en: string, fr: string|undefind}
{en: string, fr: string|undefind}
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

How to refine seed data using `with` clause in drizzle seed
Drizzle TeamDTDrizzle Team / help
8mo ago
How to use drizzle-seed to seed data?
Drizzle TeamDTDrizzle Team / help
15mo ago
Seed local SQLite database from Remote D1 data?
Drizzle TeamDTDrizzle Team / help
11mo ago
How to seed custom json type
Drizzle TeamDTDrizzle Team / help
3mo ago