From 40c1a13652dc65406692ffbcaf6d78d1d8aa07c4 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 11 Jan 2024 23:17:05 -0500 Subject: [PATCH] fix: unset sort/distinct on related queries --- lib/join.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/join.ex b/lib/join.ex index 34f367cb..66df64e3 100644 --- a/lib/join.ex +++ b/lib/join.ex @@ -253,6 +253,7 @@ defmodule AshPostgres.Join do actor: context[:private][:actor], tenant: context[:private][:tenant] ) + |> Ash.Query.unset([:sort, :distinct, :select, :limit, :offset]) |> case do %{valid?: true} = query -> ash_query = query