mirror of
https://github.com/ash-project/ash_money.git
synced 2024-09-19 12:53:11 +12:00
chore: show fancy new composite type accessor in guide
This commit is contained in:
parent
ca2ef74125
commit
d5dbfa0a42
1 changed files with 1 additions and 3 deletions
|
@ -59,9 +59,7 @@ Thanks to `ex_money_sql`, there are excellent tools for lowering support for mon
|
|||
|
||||
```elixir
|
||||
sum :sum_of_usd_balances, :accounts, :balance do
|
||||
filter expr(
|
||||
fragment("(?).currency_code", balance) == "USD"
|
||||
)
|
||||
filter expr(balance[:currency_code] == "USD")
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue