improvement: Add a case for handling mapsets in Filter.map (#1427)

This commit is contained in:
pinetops 2024-09-02 12:41:57 -04:00 committed by GitHub
parent f1874a708d
commit dd44d5dcf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1165,6 +1165,9 @@ defmodule Ash.Filter do
value when is_list(value) ->
Enum.map(value, &map(&1, func))
%MapSet{} = value ->
MapSet.new(value, &map(&1, func))
%BooleanExpression{left: left, right: right} = expr ->
%{expr | left: map(left, func), right: map(right, func)}