Skip to content

Commit d309c45

Browse files
committed
fix: ensure that exists "at_path" is returned as a relationship path
1 parent 32d1962 commit d309c45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ash/filter/filter.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2055,8 +2055,9 @@ defmodule Ash.Filter do
20552055
|> do_relationship_paths(include_exists?, false, expand_aggregates?)
20562056
|> List.flatten()
20572057
|> Enum.flat_map(fn {rel_path} ->
2058-
[{at_path}, {at_path ++ path ++ rel_path}]
2058+
[{at_path ++ path ++ rel_path}]
20592059
end)
2060+
|> then(&[{at_path} | &1])
20602061
|> Kernel.++(
20612062
parent_relationship_paths(expression, at_path, include_exists?, false, expand_aggregates?)
20622063
)

0 commit comments

Comments
 (0)