Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tamizhvendan committed Apr 26, 2020
1 parent 92157d4 commit 3b72ac6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,30 @@ The same logic applies for UUIDs as well
`[{([] {:where [:not-in :customer/id ~customer-ids]}) [:customer/first-name]}]))
```

We can also filter the results using logical operators `and`, `or` & `not`.

```clojure
[{([] {:where [:and
[:= :payment/customer-id 1]
[:> :payment/amount 5.99M]]})
[:payment/payment-id :payment/amount]}]
```

```clojure
[{([] {:where [:or
[:= :language/name "English"]
[:= :language/name "French"]]})
[:language/id :language/name]}]
```

```clojure
[{([] {:where [:not
[:or
[:= :language/name "English"]
[:= :language/name "French"]]]})
[:language/language-id :language/name]}]
```

#### Relationship Filtering

We can filter the relelationship attribute as well!
Expand Down

0 comments on commit 3b72ac6

Please sign in to comment.