mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 13:03:02 +12:00
improvement: Add a case for handling mapsets in Filter.map (#1427)
This commit is contained in:
parent
f1874a708d
commit
dd44d5dcf2
1 changed files with 3 additions and 0 deletions
|
@ -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)}
|
||||
|
||||
|
|
Loading…
Reference in a new issue