meooowwwwwww_
meooowwwwwww_
Explore posts from servers
DTDrizzle Team
Created by meooowwwwwww_ on 7/18/2024 in #help
How do we infer the batch query, response??
const batchResponse: BatchResponse<
[
BatchItem<typeof schema.users.$inferSelect>,
BatchItem<typeof schema.newsletters.$inferSelect>,
BatchItem<typeof schema.guestBook.$inferSelect>,
BatchItem<typeof schema.bookmarks.$inferSelect>,
]
> = await db.batch([
db.select().from(schema.users),
db.select().from(schema.newsletters),
db.select().from(schema.guestBook),
db.select().from(schema.bookmarks),
]);
const batchResponse: BatchResponse<
[
BatchItem<typeof schema.users.$inferSelect>,
BatchItem<typeof schema.newsletters.$inferSelect>,
BatchItem<typeof schema.guestBook.$inferSelect>,
BatchItem<typeof schema.bookmarks.$inferSelect>,
]
> = await db.batch([
db.select().from(schema.users),
db.select().from(schema.newsletters),
db.select().from(schema.guestBook),
db.select().from(schema.bookmarks),
]);
3 replies