mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 21:32:59 +12:00
23 lines
341 B
Elixir
23 lines
341 B
Elixir
defmodule AshGraphql.Test.Schema do
|
|
@moduledoc false
|
|
|
|
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
|
|
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
|
|
end
|
|
end
|