Type Alias apollo_router::graphql::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§
struct ResponseStream { /* private fields */ }