mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-21 05:43:28 +12:00
7 lines
187 B
Elixir
7 lines
187 B
Elixir
|
defmodule AshGraphql.Graphql.DomainMiddleware do
|
||
|
@moduledoc false
|
||
|
def set_domain(resolution, domain) do
|
||
|
Map.update!(resolution, :context, &Map.put(&1, :domain, domain))
|
||
|
end
|
||
|
end
|