Files
Mixer/lib/mixer_web/graphql_schema.ex
2026-03-30 01:02:24 -04:00

30 lines
629 B
Elixir

defmodule MixerWeb.GraphqlSchema do
use Absinthe.Schema
use AshGraphql,
domains: []
import_types Absinthe.Plug.Types
query do
# Custom Absinthe queries can be placed here
@desc """
Hello! This is a sample query to verify that AshGraphql has been set up correctly.
Remove me once you have a query of your own!
"""
field :say_hello, :string do
resolve fn _, _, _ ->
{:ok, "Hello from AshGraphql!"}
end
end
end
mutation do
# Custom Absinthe mutations can be placed here
end
subscription do
# Custom Absinthe subscriptions can be placed here
end
end