improvement: add pattern for Ash.Query.Call in Filter.map (#1416)

This commit is contained in:
pinetops 2024-08-28 14:55:55 -04:00 committed by GitHub
parent 4a75743812
commit f63e86f9d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)}