mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
docs: use proper filter in docs
This commit is contained in:
parent
1f64b205e9
commit
695c2bb09a
1 changed files with 2 additions and 2 deletions
|
@ -352,7 +352,7 @@ Helpdesk.Tickets.Ticket
|
||||||
|
|
||||||
# Show the tickets that are closed and their subject does not contain "4"
|
# Show the tickets that are closed and their subject does not contain "4"
|
||||||
Helpdesk.Tickets.Ticket
|
Helpdesk.Tickets.Ticket
|
||||||
|> Ash.Query.filter(closed and not(contains(subject, "4")))
|
|> Ash.Query.filter(status == :closed and not(contains(subject, "4")))
|
||||||
|> Ash.DataLayer.Simple.set_data(tickets)
|
|> Ash.DataLayer.Simple.set_data(tickets)
|
||||||
|> Helpdesk.Tickets.read!()
|
|> Helpdesk.Tickets.read!()
|
||||||
```
|
```
|
||||||
|
@ -397,7 +397,7 @@ Helpdesk.Tickets.Ticket
|
||||||
|
|
||||||
# Show the tickets that are closed and their subject does not contain "4"
|
# Show the tickets that are closed and their subject does not contain "4"
|
||||||
Helpdesk.Tickets.Ticket
|
Helpdesk.Tickets.Ticket
|
||||||
|> Ash.Query.filter(closed and not(contains(subject, "4")))
|
|> Ash.Query.filter(status == :closed and not(contains(subject, "4")))
|
||||||
|> Helpdesk.Tickets.read!()
|
|> Helpdesk.Tickets.read!()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue