nursery/noConvexCollectInQuery
nursery · since 2.6.10
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noConvexCollectInQuery": "error"
}
}
}
}Disallow loading every result of a Convex database query with .collect().
const messages = await ctx.db.query("messages").collect();const messages = await ctx.db
.query("messages")
.withIndex("by_channel", (q) => q.eq("channel", channel))
.order("desc")
.collect();const latest = await ctx.db.query("messages").order("desc").take(10);
const page = await ctx.db.query("messages").paginate(paginationOpts);
const first = await ctx.db.query("messages").first();Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noConvexCollectInQuery
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"noConvexCollectInQuery": "error"
}
}
}
}Disallow importing Node.js runtime files from Convex runtime files.
Discourages the disabled attribute on form controls and on elements that act as buttons.
Disallow using a Drizzle ORM instance inside its own transaction callback.