fun sample(size: Int): Bson
Creates a $sample pipeline stage with the specified sample size
size - the sample size
size
Return the $sample pipeline stage
Mongodb .driver.manual reference/operator/aggregation/sample/ $sample