You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update query-language docs to match changes being made with actual query language
The query language is being updated
- eq, neq, gt, lt, gte, lte, is_set, is_null are being renamed to equals, differs, greater_than, less_than, at_least, at_most, exists, absent
- contains and contains_one of are being consolidated into contains
Updated docs to match these changes
Also updated to call out a distinct behavior with differs in that it doesn't handle null in an expected way
Copy file name to clipboardExpand all lines: src/api/public-api/query-language.md
+59-63Lines changed: 59 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Follow these syntax rules when you create definitions:
37
37
The language supports the following syntactic sugar adjustments:
38
38
39
39
- The language automatically wraps a 'literal' extractor function around string or number inputs wherever a scalar expression expects them.
40
-
- You can invoke the boolean comparator functions `eq`, `neq`, `gt`, `gte`, `lt`, and `lte` by omitting the period and parenthesis and replacing the function name with the equivalent symbols `=`, `!=`, `>`, `>=`, `<`, and `<=`. Regardless of the syntactic sugar, the comparison still dictates the operations allowed in the call-chain.
40
+
- You can invoke the boolean comparator functions `equals`, `differs`, `greater_than`, `at_least`, `less_than`, and `at_most` by omitting the period and parenthesis and replacing the function name with the equivalent symbols `=`, `!=`, `>`, `>=`, `<`, and `<=`. Regardless of the syntactic sugar, the comparison still dictates the operations allowed in the call-chain.
41
41
42
42
### Definition type
43
43
@@ -182,60 +182,63 @@ The following tables list the query languages's available functions.
| Syntax |`differs({v: Scalar})`<br>`v` - value to compare for inequality |
194
+
| Return Type |`Comparator`|
195
+
| Notes | 'differs' only returns true if the value exists and is not equal. If null values need to be considered then use 'NOT (expression) = (value)' or add a condition to check for nulls '(expression) != (value) OR (expression).absent()'. |
196
+
| Example |`differs(500)`<br>Syntactic Sugar: `!= 500`|
0 commit comments