Packages

The extension for building GraphQL APIs with Ash

Current section

Files

Jump to
ash_graphql lib subscription endpoint.ex
Raw

lib/subscription/endpoint.ex

# SPDX-FileCopyrightText: 2020 ash_graphql contributors <https://github.com/ash-project/ash_graphql/graphs/contributors>
#
# SPDX-License-Identifier: MIT
defmodule AshGraphql.Subscription.Endpoint do
defmacro __using__(_opts) do
quote do
use Absinthe.Phoenix.Endpoint
defdelegate run_docset(pubsub, docs_and_topics, notification),
to: AshGraphql.Subscription.Runner
end
end
end