executePipeline method

Executes a pipeline query.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

Stream<ExecutePipelineResponse> executePipeline(
  ExecutePipelineRequest request,
) {
  final url = _endPoint.replace(
    path: '/v1/${request.database}/documents:executePipeline',
  );
  return _client
      .postStreaming(url, body: request, enableSse: false)
      .map(ExecutePipelineResponse.fromJson);
}