Skip to content

Commit

Permalink
Merge pull request #122 from snopoke/snopoke-patch-1
Browse files Browse the repository at this point in the history
Filter doc updates
  • Loading branch information
h2non committed May 10, 2023
2 parents fefc4dd + 11fbd38 commit 8c1e1f5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,19 @@ Extensions
| | - ``$.objects[\\some_field,/other_field]`` |
+--------------+-----------------------------------------------+
| filter | - ``$.objects[?(@some_field > 5)]`` |
| | - ``$.objects[?some_field = "foobar")]`` |
| | - ``$.objects[?some_field =~ "foobar")]`` |
| | - ``$.objects[?some_field > 5 & other < 2)]`` |
| | - ``$.objects[?some_field = "foobar"]`` |
| | - ``$.objects[?some_field =~ "foobar"]`` |
| | - ``$.objects[?some_field > 5 & other < 2]`` |
| | |
| | Supported operators: |
| | - Equality: ==, =, != |
| | - Comparison: >, >=, <, <= |
| | - Regex match: =~ |
| | |
| | Combine multiple criteria with '&'. |
| | |
| | Properties can only be compared to static |
| | values. |
+--------------+-----------------------------------------------+
| arithmetic | - ``$.foo + "_" + $.bar`` |
| (-+*/) | - ``$.foo * 12`` |
Expand Down

0 comments on commit 8c1e1f5

Please sign in to comment.