Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement limit method for MongoDB driver #499
If you have the time, I'd like to suggest some improvements. In particular, the amount of returned documents per chunk should also be limited to the given limit and the cursor should be discarded when the limit is reached. I'll make some inline comments for this.