ExUtcp.Transports.Graphql.Connection (ex_utcp v0.2.8)
View SourceManages GraphQL connections with pooling and lifecycle management.
Summary
Functions
Returns a specification to start this module under a supervisor.
Closes the GraphQL connection.
Gets the last used timestamp.
Checks if the connection is healthy.
Introspects the GraphQL schema.
Executes a GraphQL mutation.
Executes a GraphQL query.
Starts a new GraphQL connection process.
Executes a GraphQL subscription.
Updates the last used timestamp.
Types
@type t() :: %ExUtcp.Transports.Graphql.Connection{ client: Req.Request.t(), connection_state: :connecting | :connected | :disconnected | :error, last_used: DateTime.t(), max_retries: non_neg_integer(), provider: map(), retry_count: non_neg_integer(), subscription_handles: %{required(String.t()) => pid()} }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec close(pid()) :: :ok
Closes the GraphQL connection.
Gets the last used timestamp.
Checks if the connection is healthy.
Introspects the GraphQL schema.
Executes a GraphQL mutation.
Executes a GraphQL query.
Starts a new GraphQL connection process.
Executes a GraphQL subscription.
@spec update_last_used(pid()) :: :ok
Updates the last used timestamp.