Created
December 2, 2015 16:30
-
-
Save cristopher-rodrigues/ca786f88cf15298b7a2f to your computer and use it in GitHub Desktop.
mongo random find data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.collection.find().limit(1).skip(_rand()*db.collection.count()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment