sample

fun sample(size: Int): Bson

Creates a $sample pipeline stage with the specified sample size

Return

the $sample pipeline stage

Parameters

size

the sample size