mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
docs: add aggregates doc
This commit is contained in:
parent
0b7f48b7c2
commit
6825968ddf
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ Example:
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
aggregates do
|
aggregates do
|
||||||
count :count_of_posts, :posts, filter: [published: true]
|
count :count_of_posts, :posts do
|
||||||
|
filter expr(published == true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue