mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 12:53:40 +12:00
chore: ensure managed relationship types are distinct on identifier
This commit is contained in:
parent
b1ab52959d
commit
8d612a08bc
1 changed files with 2 additions and 1 deletions
|
@ -196,6 +196,7 @@ defmodule AshGraphql do
|
||||||
Process.get(:managed_relationship_requirements, []),
|
Process.get(:managed_relationship_requirements, []),
|
||||||
unquote(schema)
|
unquote(schema)
|
||||||
)
|
)
|
||||||
|
|> Enum.uniq_by(& &1.identifier)
|
||||||
|> Enum.reject(fn type ->
|
|> Enum.reject(fn type ->
|
||||||
existing_types =
|
existing_types =
|
||||||
case blueprint_with_mutations do
|
case blueprint_with_mutations do
|
||||||
|
@ -207,7 +208,7 @@ defmodule AshGraphql do
|
||||||
end
|
end
|
||||||
|
|
||||||
Enum.any?(existing_types, fn existing_type ->
|
Enum.any?(existing_types, fn existing_type ->
|
||||||
existing_type.name == type.name
|
existing_type.identifier == type.identifier
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue