pub async fn execute_batch(&self, batch_request: BatchRequest) -> BatchResponse {
        match batch_request {
            BatchRequest::Single(request) => BatchResponse::Single(self.execute(request).await),
            BatchRequest::Batch(requests) => BatchResponse::Batch(
                futures_util::stream::iter(requests.into_iter())
                    .then(|request| self.execute(request))
                    .collect()
                    .await,
            ),
        }
    }
/// Execute a GraphQL batch query.
Execute a GraphQL batch query.
Execute a GraphQL batch query .
pub async fn execute_batch(&self, batch_request: BatchRequest) -> BatchResponse {
        match batch_request {
            BatchRequest::Single(request) => BatchResponse::Single(self.execute(request).await),
            BatchRequest::Batch(requests) => BatchResponse::Batch(
                futures_util::stream::iter(requests.into_iter())
                    .then(|request| self.execute(request))
                    .collect()
                    .await,
            ),
        }
    }
pub async fn execute_batch ( & self , batch_request : BatchRequest ) -> BatchResponse { match batch_request { BatchRequest :: Single ( request ) => BatchResponse :: Single ( self . execute ( request ) . await ) , BatchRequest :: Batch ( requests ) => BatchResponse :: Batch ( futures_util :: stream :: iter ( requests . into_iter ( ) ) . then ( | request | self . execute ( request ) ) . collect ( ) . await , ) , } }
Execute a GraphQL batch query.
Execute a GraphQL batch query .
&self
batch_request
BatchRequest
&self
batch_request
BatchRequest