From bb33f622e84e6557ace70e7c5607c2e4439d9aa0 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 25 Mar 2025 19:15:00 +0800 Subject: [PATCH] Clarify _eq and _neq are not strictly typed for numeric values --- content/guides/4.connect/2.filter-rules.md | 29 +++++++++++----------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/content/guides/4.connect/2.filter-rules.md b/content/guides/4.connect/2.filter-rules.md index 8c00eda7..4d881b6c 100644 --- a/content/guides/4.connect/2.filter-rules.md +++ b/content/guides/4.connect/2.filter-rules.md @@ -9,8 +9,8 @@ Filters are used in permissions, validations, and automations, as well as throug | Operator | Description | | ---------------------------------- | --------------------------------------- | -| `_eq` | Equals | -| `_neq` | Doesn't equal | +| `_eq` [1] | Equals | +| `_neq` [1] | Doesn't equal | | `_lt` | Less than | | `_lte` | Less than or equal to | | `_gt` | Greater than | @@ -34,17 +34,18 @@ Filters are used in permissions, validations, and automations, as well as throug | `_nbetween` | Is not between two values (inclusive) | | `_empty` | Is empty (`null` or falsy) | | `_nempty` | Isn't empty (`null` or falsy) | -| `_intersects` [1] | Intersects a point | -| `_nintersects` [1] | Doesn't intersect a point | -| `_intersects_bbox` [1] | Intersects a bounding box | -| `_nintersects_bbox` [1] | Doesn't intersect a bounding box | -| `_regex` [2] | Regular expression (escape backslashes) | -| `_some` [3] | At least one related value is true | -| `_none` [3] | No related values are true | - -[1] Only available on geometry fields.
-[2] Only available in validation permissions.
-[3] Only available on One to Many relationship fields. +| `_intersects` [2] | Intersects a point | +| `_nintersects` [2] | Doesn't intersect a point | +| `_intersects_bbox` [2] | Intersects a bounding box | +| `_nintersects_bbox` [2] | Doesn't intersect a bounding box | +| `_regex` [3] | Regular expression (escape backslashes) | +| `_some` [4] | At least one related value is true | +| `_none` [4] | No related values are true | + +[1] Compared value is not strictly typed for numeric values, allowing comparisons between numbers and their string representations.
+[2] Only available on geometry fields.
+[3] Only available in validation permissions.
+[4] Only available on One to Many relationship fields. ## Filter Syntax @@ -320,4 +321,4 @@ There exists both a `cities` and a `countries` collection. `cities` have an M2O } } ``` -:: \ No newline at end of file +::