fix: honor read_action for update/destroy mutations

closes #169
This commit is contained in:
Zach Daniel 2024-06-02 11:27:49 -04:00
parent 4ff56a3c59
commit d49fc5a488

View file

@ -1242,6 +1242,7 @@ defmodule AshGraphql.Graphql.Resolver do
tenant: Map.get(context, :tenant), tenant: Map.get(context, :tenant),
context: get_context(context) || %{}, context: get_context(context) || %{},
authorize?: AshGraphql.Domain.Info.authorize?(domain), authorize?: AshGraphql.Domain.Info.authorize?(domain),
read_action: read_action,
domain: domain, domain: domain,
actor: Map.get(context, :actor), actor: Map.get(context, :actor),
select: select:
@ -1403,6 +1404,7 @@ defmodule AshGraphql.Graphql.Resolver do
strategy: [:atomic, :stream, :atomic_batches], strategy: [:atomic, :stream, :atomic_batches],
allow_stream_with: :full_read, allow_stream_with: :full_read,
return_records?: true, return_records?: true,
read_action: read_action,
tenant: Map.get(context, :tenant), tenant: Map.get(context, :tenant),
context: get_context(context) || %{}, context: get_context(context) || %{},
authorize?: AshGraphql.Domain.Info.authorize?(domain), authorize?: AshGraphql.Domain.Info.authorize?(domain),