fix: ensure type is set when using find_manage_relationship

closes #132
This commit is contained in:
Zach Daniel 2024-04-20 16:24:05 +01:00
parent 1c4cf1969c
commit bd9562a9fa

View file

@ -587,7 +587,7 @@ defmodule AshGraphql.Graphql.Resolver do
type: type
})
opts = AshGraphql.Resource.find_manage_change(%{name: name}, action, resource)
opts = AshGraphql.Resource.find_manage_change(%{name: name, type: type}, action, resource)
relationship =
Ash.Resource.Info.relationship(resource, opts[:relationship]) ||