Rather than rewrite queries as aggregate
expressions to take advantage of the $sample
option, is there an equivalent method for .find()
operations. I've not been able to find anything in pymongo that works with find.
Asked
Active
Viewed 112 times
0

disruptive
- 5,687
- 15
- 71
- 135
1 Answers
1
No, the $sample aggregation operator only works with aggregation.

A. Jesse Jiryu Davis
- 23,641
- 4
- 57
- 70