naourass
naourass
Explore posts from servers
DTDrizzle Team
Created by naourass on 10/11/2024 in #help
Get the count of a nested relation in findMany()
Is it currently possible to get the count of a nested relation in findMany() query?
const data = await db.query.docs.findMany({
with: {
articles: {
with: { attachments: { count: "Count of attachments here" } }
}
}
});
const data = await db.query.docs.findMany({
with: {
articles: {
with: { attachments: { count: "Count of attachments here" } }
}
}
});
1 replies
CDCloudflare Developers
Created by naourass on 3/27/2024 in #pages-help
Remix local dev with hot reload and resource binding
I'm using the remix template (vite compiler) to develop a pages project locally. I can't find how to add bindings to D1 or KV so I can simulate them locally with live reload support. I read that cloudflareDevProxyVitePlugin set up some proxies for that but not sure how that works. Should I run both wrangler pages dev and remix vite:dev? Should I add some watch command? Any help will be appreciated. Thanks!
8 replies