mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: proper source path for lateral joined relationships
This commit is contained in:
parent
d7aaec7499
commit
7f460009af
1 changed files with 2 additions and 1 deletions
|
@ -942,7 +942,8 @@ defmodule Ash.Actions.Load do
|
|||
end
|
||||
|
||||
data_path =
|
||||
if relationship.type == :many_to_many do
|
||||
if relationship.type == :many_to_many &&
|
||||
!lateral_join?(source_query, relationship, :unknown) do
|
||||
join_relationship = join_relationship(relationship)
|
||||
|
||||
join_relationship_path(path, join_relationship) |> Enum.map(& &1.name)
|
||||
|
|
Loading…
Reference in a new issue