ash_graphql/test/support/schema.ex

24 lines
341 B
Elixir
Raw Normal View History

2020-12-02 18:07:15 +13:00
defmodule AshGraphql.Test.Schema do
@moduledoc false
2020-12-02 18:07:15 +13:00
use Absinthe.Schema
@apis [AshGraphql.Test.Api]
use AshGraphql, apis: @apis
query do
end
mutation do
end
def context(ctx) do
AshGraphql.add_context(ctx, @apis)
end
def plugins do
2020-12-02 18:07:15 +13:00
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
end
end