mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-21 13:53:25 +12:00
17 lines
281 B
Elixir
17 lines
281 B
Elixir
|
defmodule Example.Schema do
|
||
|
@moduledoc false
|
||
|
use Absinthe.Schema
|
||
|
|
||
|
@apis [Example]
|
||
|
|
||
|
use AshGraphql, apis: @apis
|
||
|
|
||
|
def context(ctx) do
|
||
|
AshGraphql.add_context(ctx, @apis)
|
||
|
end
|
||
|
|
||
|
def plugins do
|
||
|
[Absinthe.Middleware.Dataloader | Absinthe.Plugin.defaults()]
|
||
|
end
|
||
|
end
|