Enum juniper::http::GraphQLBatchResponse
source · pub enum GraphQLBatchResponse<'a, S = DefaultScalarValue>where
S: ScalarValue,{
Single(GraphQLResponse<'a, S>),
Batch(Vec<GraphQLResponse<'a, S>>),
}
Expand description
Simple wrapper around the result (GraphQLResponse) from executing a GraphQLBatchRequest
This struct implements Serialize, so you can simply serialize this
to JSON and send it over the wire. use the is_ok
to determine
wheter to send a 200 or 400 HTTP status code.
Variants§
Single(GraphQLResponse<'a, S>)
Result of a single operation in a GraphQL request.
Batch(Vec<GraphQLResponse<'a, S>>)
Result of a batch operation in a GraphQL request.