0

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.

disruptive
  • 5,687
  • 15
  • 71
  • 135

1 Answers1

1

No, the $sample aggregation operator only works with aggregation.

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