Packages

The extension for building GraphQL APIs with Ash

Current section

Files

Jump to
ash_graphql lib subscription actor.ex
Raw

lib/subscription/actor.ex

defmodule AshGraphql.Subscription.Actor do
@moduledoc """
Allows the user to substitue an actor for another more generic actor,
this can be used to deduplicate subscription execution
"""
# I'd like to have the typespec say that actor can be anything
# but that the input and output must be the same
@callback actor(actor :: any, opts :: Keyword.t()) :: actor :: any
end