Packages

The extension for building GraphQL APIs with Ash

Current section

Files

Jump to
ash_graphql lib graphql domain_middleware.ex
Raw

lib/graphql/domain_middleware.ex

defmodule AshGraphql.Graphql.DomainMiddleware do
@moduledoc false
def set_domain(resolution, domain) do
Map.update!(resolution, :context, &Map.put(&1, :domain, domain))
end
end