ash_hq/lib/ash_hq_web/schema.ex

19 lines
286 B
Elixir
Raw Normal View History

2022-09-16 10:35:33 +12:00
defmodule AshHqWeb.Schema do
use Absinthe.Schema
@apis [AshHq.Docs]
2022-09-16 10:35:33 +12:00
use AshGraphql, apis: @apis
query do
end
2022-09-16 10:35:33 +12:00
def context(ctx) do
AshGraphql.add_context(ctx, @apis)
end
def plugins() do
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
end
end