Skip to content

Commit 11fbd38

Browse files
committed
Add more detail to filter docs.
1 parent 45ebc2f commit 11fbd38

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.rst

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,19 @@ Extensions
203203
| | - ``$.objects[\\some_field,/other_field]`` |
204204
+--------------+-----------------------------------------------+
205205
| filter | - ``$.objects[?(@some_field > 5)]`` |
206-
| | - ``$.objects[?some_field = "foobar"]`` |
207-
| | - ``$.objects[?some_field =~ "foobar"]`` |
208-
| | - ``$.objects[?some_field > 5 & other < 2]`` |
206+
| | - ``$.objects[?some_field = "foobar"]`` |
207+
| | - ``$.objects[?some_field =~ "foobar"]`` |
208+
| | - ``$.objects[?some_field > 5 & other < 2]`` |
209+
| | |
210+
| | Supported operators: |
211+
| | - Equality: ==, =, != |
212+
| | - Comparison: >, >=, <, <= |
213+
| | - Regex match: =~ |
214+
| | |
215+
| | Combine multiple criteria with '&'. |
216+
| | |
217+
| | Properties can only be compared to static |
218+
| | values. |
209219
+--------------+-----------------------------------------------+
210220
| arithmetic | - ``$.foo + "_" + $.bar`` |
211221
| (-+*/) | - ``$.foo * 12`` |

0 commit comments

Comments
 (0)