From 11956fd62cab17a09444e49aaa7086d38afba7f3 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 28 Dec 2022 16:45:47 -0500 Subject: [PATCH] fix: allow lists in expr syntax --- lib/ash/expr/expr.ex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ash/expr/expr.ex b/lib/ash/expr/expr.ex index 66e4e123..c34d24a4 100644 --- a/lib/ash/expr/expr.ex +++ b/lib/ash/expr/expr.ex @@ -98,6 +98,10 @@ defmodule Ash.Expr do do_expr(left, escape?) end + def do_expr(value, escape?) when is_list(value) do + Enum.map(value, &do_expr(&1, escape?)) + end + def do_expr({{:., _, [_, _]} = left, _, args}, escape?) do args = Enum.map(args, &do_expr(&1, false))