Crate juniper_graphql_ws

Crate juniper_graphql_ws 

Source
Expand description

§juniper_graphql_ws crate

Crates.io Documentation CI Rust 1.85+

This crate contains implementations of 2 protocols:

  1. (graphql-transport-ws feature) The new graphql-transport-ws GraphQL over WebSocket Protocol, as now used by Apollo and graphql-ws npm package.

  2. (graphql-ws feature) The legacy graphql-ws GraphQL over WebSocket Protocol, as formerly used by Apollo and subscriptions-transport-ws npm package (deprecated in favor of the new graphql-transport-ws GraphQL over WebSocket Protocol mentioned above).

§License

This project is licensed under BSD 2-Clause License.

Modules§

graphql_transport_wsgraphql-transport-ws
Implementation of the new graphql-transport-ws GraphQL over WebSocket Protocol, as now used by Apollo and graphql-ws npm package.
graphql_wsgraphql-ws
Implementation of the legacy graphql-ws GraphQL over WebSocket Protocol, as formerly used by Apollo and subscriptions-transport-ws npm package.

Structs§

ConnectionConfig
ConnectionConfig is used to configure the connection once the client sends the ConnectionInit message.

Traits§

Init
Init defines the requirements for types that can provide connection configurations when ConnectionInit messages are received. Implementations are provided for ConnectionConfig and closures that meet the requirements.
Schema
Schema defines the requirements for schemas that can be used for operations. Typically this is just an Arc<RootNode<...>> and you should not have to implement it yourself.