ash_graphql/lib/resource/subscription.ex

18 lines
326 B
Elixir
Raw Normal View History

2024-01-05 00:53:59 +13:00
defmodule AshGraphql.Resource.Subscription do
@moduledoc "Represents a configured query on a resource"
defstruct [
:name,
:config,
2024-02-06 21:24:44 +13:00
:read_action
2024-01-05 00:53:59 +13:00
]
@subscription_schema [
name: [
type: :atom,
doc: "The name to use for the subscription."
]
]
def schema, do: @subscription_schema
end