ash_authentication/test/support/example/schema.ex

20 lines
299 B
Elixir
Raw Normal View History

defmodule Example.Schema do
@moduledoc false
use Absinthe.Schema
@apis [Example]
use AshGraphql, apis: @apis
query do
end
def context(ctx) do
AshGraphql.add_context(ctx, @apis)
end
def plugins do
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
end
end