Skip to content

Commit c3ef448

Browse files
committed
docs(tables): restore the select-operator reference lost in the rebase
The regenerated page reverted to the "there are no array columns" claim that the select-operator fix corrected. Restore the allowed-operator table.
1 parent 5797f3a commit c3ef448

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎apps/docs/content/docs/integrations/table.mdx‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,16 @@ A filter is a predicate. One condition is an object naming a column, an operator
296296
| `isNull` / `isNotNull` | Cell is (not) null | `{"field": "phone", "op": "isNull"}` |
297297
| `isEmpty` / `isNotEmpty` | Cell is (not) empty | `{"field": "phone", "op": "isEmpty"}` |
298298

299-
Columns are scalar (string, number, boolean, date) or opaque JSON. There are no array columns, so use `ilike` with `*value*` for substring matching.
299+
Most columns are scalar (string, number, boolean, date) or opaque JSON; use `ilike` with `*value*` for substring matching on text.
300+
301+
**Select columns accept only a subset of these operators**, and a query using any other operator on one is rejected rather than returning no rows:
302+
303+
| Column | Allowed operators |
304+
|--------|-------------------|
305+
| Single-select | `eq`, `ne`, `in`, `nin`, `isEmpty`, `isNotEmpty` |
306+
| Multi-select | `contains`, `ncontains`, `isEmpty`, `isNotEmpty` |
307+
308+
A multi-select cell holds a list of options, so match it with `contains` (by option name) rather than `ilike`.
300309

301310
### Combining Filters
302311

0 commit comments

Comments
 (0)