ResponseStream

Type Alias ResponseStream 

Source
pub type ResponseStream = Pin<Box<dyn Stream<Item = Response> + Send>>;
Expand description

An asynchronous Stream of GraphQL Responses.

In some cases such as with @defer, a single HTTP response from the Router may contain multiple GraphQL responses that will be sent at different times (as more data becomes available).

We represent this in Rust as a stream, even if that stream happens to only contain one item.

Aliased Typeยง

pub struct ResponseStream { /* private fields */ }