code: public <ResultT> CoreRemoteAggregateIterable<ResultT> aggregate(
        final List<? extends Bson> pipeline,
        final Class<ResultT> resultClass
    ) {
      return new CoreRemoteAggregateIterableImpl<>(
          pipeline,
          resultClass,
          service,
          operations);
    }
docs: Aggregates documents according to the specified aggregation pipeline.
  
  @param pipeline    the aggregation pipeline
  @param resultClass the class to decode each document into
  @param <ResultT>   the target document type of the iterable.
  @return an iterable containing the result of the aggregation operation