Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bluzky authored Oct 30, 2020
1 parent a8d87e4 commit d20963d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ http://localhost:4000/products?name__ilike=milk&price__ge=32&rating__sort=desc

Into this
```elixir
Product
|> where([p], ilike(p.name, "%milk%") and p.price >= 32)
|> order_by([desc: :rating])
from(p in Product, where: ilike(p.name, "%milk%") and p.price >= 32, order_by: [desc: :rating])
```

Cool, right?
Expand Down

0 comments on commit d20963d

Please sign in to comment.