mingo
Version:
MongoDB query language for in-memory objects
13 lines (12 loc) • 511 B
TypeScript
import { PipelineOperator } from "../../core";
/**
* Categorizes incoming documents into a specific number of groups, called buckets,
* based on a specified expression. Bucket boundaries are automatically determined
* in an attempt to evenly distribute the documents into the specified number of buckets.
* https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/
*
* @param {*} collection
* @param {*} expr
* @param {*} options
*/
export declare const $bucketAuto: PipelineOperator;