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}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?