ash_hq/lib/ash_hq_web/schema.ex
Zach Daniel 986cc4cabe improvement: add some basic graphql stuff
chore: update to latest Ash for fixes
2022-10-31 14:21:50 -04:00

18 lines
286 B
Elixir

defmodule AshHqWeb.Schema do
use Absinthe.Schema
@apis [AshHq.Docs]
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