Aggregate in Collection
Aggregate in a given Collection. The value of a stage is any JSON value. Operators that run JavaScript on the database server or write to collections ($function, $accumulator, $where, $out, $merge, $currentOp, $listSessions, $collStats, $indexStats by default, configured with AGGREGATION_STAGES_DENIED) are refused with 403.
Authorizations
Parameters
Path Parameters
The name of your MongoDb Collection
Query Parameters
Soft-deleted documents too (collections declared with softDelete, 2.3.0); needs the administrate grant of the collection, 403 otherwise.
falseCount elements per page
100"int64"Requested page of the ResultSets
1"int64"How the result is counted: exact (default) or none (no count headers, no count query)
"exact""none""exact""exact"Filter Query like on the list of documents, applied as the first stage of the pipeline. Not possible for a pipeline that starts with $geoNear, $search or $vectorSearch.
relaxed (default since 2.0.0) or canonical: the documents as MongoDB Extended JSON with the types of their values ({"$oid": ...}, {"$date": ...}, {"$numberDecimal": ...}; canonical also {"$numberInt": ...}, {"$numberLong": ...} and {"$numberDouble": ...}); a text that looks like a date is {"$string": ...}. plain: the format of 1.x (ids and dates as strings, every number as JSON number, no types).
"relaxed""canonical""plain""relaxed"true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*
falsefalse