# useConvexExplicitTableIds

Rule `biome/useConvexExplicitTableIds`. Require the table name as the first argument of Convex database calls.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #589 by reach, #224 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/useConvexExplicitTableIds` | yes | no | group nursery, since 2.6.10 | [docs](https://biomejs.dev/linter/rules/use-convex-explicit-table-ids/) |

## Code examples

### Incorrect: the rule reports this

```js
const message = await ctx.db.get(messageId);
```

```js
await ctx.db.patch(messageId, { text: "updated" });
```

```js
await ctx.db.replace(messageId, { text: "replaced", author: "Alice" });
```

### Correct: the rule accepts this

```js
const message = await ctx.db.get("messages", messageId);
await ctx.db.patch("messages", messageId, { text: "updated" });
await ctx.db.replace("messages", messageId, { text: "replaced", author: "Alice" });
await ctx.db.delete("messages", messageId);
const file = await ctx.db.system.get("_storage", storageId);
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useConvexExplicitTableIds": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/useConvexArgsValidator](https://lintradar.dev/rules/biome/useConvexArgsValidator.md): Require an `args` validator in Convex queries, mutations, and actions.
- [biome/useDeprecatedReason](https://lintradar.dev/rules/biome/useDeprecatedReason.md): Require a reason when using the `@deprecated` directive.
- [biome/useConvexAccessControl](https://lintradar.dev/rules/biome/useConvexAccessControl.md): Require public Convex functions to call an access control function.
- [biome/useGenericFontNames](https://lintradar.dev/rules/biome/useGenericFontNames.md): Require a generic fallback in font-family lists.
- [biome/useConsistentObjectKeys](https://lintradar.dev/rules/biome/useConsistentObjectKeys.md): Enforce JSON keys with consistent Unicode representation.
- [biome/useGraphqlNamedOperations](https://lintradar.dev/rules/biome/useGraphqlNamedOperations.md): Require a name for every explicit GraphQL operation definition.

---

Web page: https://lintradar.dev/rules/biome/useConvexExplicitTableIds. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
