Skip to content

Commit b154bb6

Browse files
committed
fix instability in ordering of managed relationship input fields
1 parent 7604ca6 commit b154bb6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/resource/resource.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2105,7 +2105,9 @@ defmodule AshGraphql.Resource do
21052105
type = managed_relationship.type_name || default_managed_type_name(resource, action, argument)
21062106

21072107
fields =
2108-
check_for_conflicts!(fields, managed_relationship, resource)
2108+
fields
2109+
|> check_for_conflicts!(managed_relationship, resource)
2110+
|> Enum.sort_by(fn field -> field.name end)
21092111

21102112
if Enum.empty?(fields) do
21112113
raise """

0 commit comments

Comments
 (0)