I’d like to show random users on the home-page of my app, together with an end-less scrolling mechanism. Before Meteor was on MongoDB 3.2, I used some pretty weird code to do this, but with MongoDB 3.2, there is a sample() method:
Now I am wondering how I could use this in combination with Meteor’s MongoDB wrappers? The API only supports
limit, but not
sample. Is there a way to workaround this limitation by accessing the underlying Mongo collection code? I only need this on server-side, inside a Meteor method.