Expand description

§juniper_graphql_ws crate

Crates.io Documentation CI Rust 1.73+

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.

Re-exports§

  • pub use self::schema::ArcSchema;

Modules§

Structs§

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

Traits§

  • 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 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.