mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 13:03:02 +12:00
improvement: add pattern for Ash.Query.Call in Filter.map (#1416)
This commit is contained in:
parent
4a75743812
commit
f63e86f9d6
1 changed files with 3 additions and 0 deletions
|
@ -1187,6 +1187,9 @@ defmodule Ash.Filter do
|
|||
# you have to map over the internals of exists yourself
|
||||
func.(expr)
|
||||
|
||||
%Ash.Query.Call{args: args} = op ->
|
||||
%{op | args: map(args, func)}
|
||||
|
||||
%{__operator__?: true, left: left, right: right} = op ->
|
||||
%{op | left: map(left, func), right: map(right, func)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue