runQuery method

Stream<RunQueryResponse> runQuery(
  1. RunQueryRequest request
)

Runs a 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<RunQueryResponse> runQuery(RunQueryRequest request) {
  final url = _endPoint.replace(path: '/v1/${request.parent}:runQuery');
  return _client
      .postStreaming(url, body: request, enableSse: false)
      .map(RunQueryResponse.fromJson);
}