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,159
  • 12
  • 62
  • 119

1 Answers1

1

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

A. Jesse Jiryu Davis
  • 22,865
  • 3
  • 52
  • 66