Skip to content

Clarify _eq and _neq are not strictly typed for numeric values #263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions content/guides/4.connect/2.filter-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` <sup>[1]</sup> | Equals |
| `_neq` <sup>[1]</sup> | Doesn't equal |
| `_lt` | Less than |
| `_lte` | Less than or equal to |
| `_gt` | Greater than |
Expand All @@ -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` <sup>[1]</sup> | Intersects a point |
| `_nintersects` <sup>[1]</sup> | Doesn't intersect a point |
| `_intersects_bbox` <sup>[1]</sup> | Intersects a bounding box |
| `_nintersects_bbox` <sup>[1]</sup> | Doesn't intersect a bounding box |
| `_regex` <sup>[2]</sup> | Regular expression (escape backslashes) |
| `_some` <sup>[3]</sup> | At least one related value is true |
| `_none` <sup>[3]</sup> | No related values are true |

<sup>[1]</sup> Only available on geometry fields.<br>
<sup>[2]</sup> Only available in validation permissions.<br>
<sup>[3]</sup> Only available on One to Many relationship fields.
| `_intersects` <sup>[2]</sup> | Intersects a point |
| `_nintersects` <sup>[2]</sup> | Doesn't intersect a point |
| `_intersects_bbox` <sup>[2]</sup> | Intersects a bounding box |
| `_nintersects_bbox` <sup>[2]</sup> | Doesn't intersect a bounding box |
| `_regex` <sup>[3]</sup> | Regular expression (escape backslashes) |
| `_some` <sup>[4]</sup> | At least one related value is true |
| `_none` <sup>[4]</sup> | No related values are true |

<sup>[1]</sup> Compared value is not strictly typed for numeric values, allowing comparisons between numbers and their string representations.<br>
<sup>[2]</sup> Only available on geometry fields.<br>
<sup>[3]</sup> Only available in validation permissions.<br>
<sup>[4]</sup> Only available on One to Many relationship fields.

## Filter Syntax

Expand Down Expand Up @@ -320,4 +321,4 @@ There exists both a `cities` and a `countries` collection. `cities` have an M2O
}
}
```
::
::