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 101 times
0
disruptive
- 5,159
- 12
- 62
- 119
1 Answers
1
No, the $sample aggregation operator only works with aggregation.
A. Jesse Jiryu Davis
- 22,865
- 3
- 52
- 66