Sunday, December 15, 2013

ReactiveMongo Recipe: Finding a random document

Selecting a random document from a collection is probably not a terribly common use case but I had to figure out how to do it with ReactiveMongo recently and it took me some fiddling so here is how you can do it:


See an example in action Here.

No comments:

Post a Comment