mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: handle {:ref, ...}
tuple in static syntax
This commit is contained in:
parent
c38c0c6fcb
commit
ae46b27f04
1 changed files with 11 additions and 0 deletions
|
@ -2805,6 +2805,17 @@ defmodule Ash.Filter do
|
|||
do_hydrate_refs(value, context)
|
||||
end
|
||||
|
||||
def do_hydrate_refs({:ref, value}, context) do
|
||||
do_hydrate_refs(
|
||||
%Ash.Query.Ref{
|
||||
attribute: value,
|
||||
relationship_path: [],
|
||||
resource: context.root_resource
|
||||
},
|
||||
context
|
||||
)
|
||||
end
|
||||
|
||||
def do_hydrate_refs({key, value}, context) when is_atom(key) do
|
||||
case do_hydrate_refs(value, context) do
|
||||
{:ok, hydrated} ->
|
||||
|
|
Loading…
Reference in a new issue