Skip to content

Commit

Permalink
chore: set additional keys earlier in for_read
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Nov 5, 2024
1 parent 0395a08 commit 0bd0032
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/graphql/resolver.ex
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ defmodule AshGraphql.Graphql.Resolver do
query
|> Ash.Query.for_read(action, %{},
actor: opts[:actor],
authorize?: AshGraphql.Domain.Info.authorize?(domain)
authorize?: AshGraphql.Domain.Info.authorize?(domain),
tenant: Map.get(context, :tenant),
tracer: AshGraphql.Domain.Info.tracer(domain)
)
|> load_fields(
[
Expand Down

0 comments on commit 0bd0032

Please sign in to comment.