mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
WIP
This commit is contained in:
parent
ccf30bafac
commit
5cc928f192
1 changed files with 7 additions and 2 deletions
|
@ -294,7 +294,9 @@ defmodule Ash.Actions.SideLoad do
|
|||
path
|
||||
)
|
||||
else
|
||||
Map.get(data, request_path).query
|
||||
Enum.reduce(request_path ++ [:query], data, fn path_part, data ->
|
||||
Map.get(data, path_part)
|
||||
end)
|
||||
end
|
||||
|
||||
with {:ok, query} <- new_query,
|
||||
|
@ -380,7 +382,10 @@ defmodule Ash.Actions.SideLoad do
|
|||
path
|
||||
)
|
||||
else
|
||||
Map.get(data, [:include, join_relationship_path]).query
|
||||
Enum.reduce([:include, join_relationship_path] ++ [:query], data, fn path_part,
|
||||
data ->
|
||||
Map.get(data, path_part)
|
||||
end)
|
||||
end
|
||||
|
||||
with {:ok, query} <- new_query,
|
||||
|
|
Loading…
Reference in a new issue