drizzle-seed

is it not possible to have column refinement within a join?
await seed(db, { ...schema, ...relations }).refine((f) => ({
profile: {
count: 8,
columns: {
fullName: f.fullName(),
},
with: {
shiftPreference: {
count: 9,
columns: {
date: f.date({ minDate: "2024-09-17", maxDate: "2024-10-07" }),
}
}
},
},
}));
await seed(db, { ...schema, ...relations }).refine((f) => ({
profile: {
count: 8,
columns: {
fullName: f.fullName(),
},
with: {
shiftPreference: {
count: 9,
columns: {
date: f.date({ minDate: "2024-09-17", maxDate: "2024-10-07" }),
}
}
},
},
}));
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?