mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: properly construct nested join relationships
This commit is contained in:
parent
5b88f476f2
commit
d7874c5ecd
1 changed files with 2 additions and 1 deletions
|
@ -2141,7 +2141,8 @@ defmodule AshPostgres.DataLayer do
|
|||
source,
|
||||
filter
|
||||
) do
|
||||
join_relationship = Ash.Resource.Info.relationship(source, relationship.join_relationship)
|
||||
join_relationship =
|
||||
Ash.Resource.Info.relationship(relationship.source, relationship.join_relationship)
|
||||
|
||||
with {:ok, relationship_through} <-
|
||||
maybe_get_resource_query(relationship.through, join_relationship, query),
|
||||
|
|
Loading…
Reference in a new issue