2022-09-16 10:35:33 +12:00
|
|
|
defmodule AshHqWeb.Schema do
|
2022-11-17 08:36:05 +13:00
|
|
|
@moduledoc "The absinthe graphql schema"
|
2022-09-16 10:35:33 +12:00
|
|
|
use Absinthe.Schema
|
|
|
|
|
2022-11-01 07:21:50 +13:00
|
|
|
@apis [AshHq.Docs]
|
2022-09-16 10:35:33 +12:00
|
|
|
|
|
|
|
use AshGraphql, apis: @apis
|
|
|
|
|
2022-11-01 07:21:50 +13:00
|
|
|
query do
|
|
|
|
end
|
|
|
|
|
2022-11-02 18:30:46 +13:00
|
|
|
mutation do
|
|
|
|
end
|
|
|
|
|
2022-09-16 10:35:33 +12:00
|
|
|
def context(ctx) do
|
|
|
|
AshGraphql.add_context(ctx, @apis)
|
|
|
|
end
|
|
|
|
|
2022-11-17 08:36:05 +13:00
|
|
|
def plugins do
|
2022-09-16 10:35:33 +12:00
|
|
|
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
|
|
|
|
end
|
|
|
|
end
|