AggregateRequest constructor

AggregateRequest({
  1. List<int>? collectionOid,
  2. RequestContext? context,
  3. Iterable<List<int>>? pipeline,
})

Implementation

factory AggregateRequest({
  $core.List<$core.int>? collectionOid,
  $24.RequestContext? context,
  $core.Iterable<$core.List<$core.int>>? pipeline,
}) {
  final _result = create();
  if (collectionOid != null) {
    _result.collectionOid = collectionOid;
  }
  if (context != null) {
    _result.context = context;
  }
  if (pipeline != null) {
    _result.pipeline.addAll(pipeline);
  }
  return _result;
}