[DOCS-4996] Document what a negative limit means Created: 13/Mar/15  Updated: 30/Oct/23  Resolved: 21/May/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Joanna Cheng Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 8 years, 38 weeks, 6 days ago

 Description   

Per David Storch and this presentation

db.coll.find().limit(-200)

This means, “Give me back up to 200 results, but give me only one batch (I won’t be calling getmore)”



 Comments   
Comment by Githook User [ 21/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-4996 negative limit
Branch: master
https://github.com/mongodb/docs/commit/e893eea85b90077380382e097a02734044300bd7

Comment by Githook User [ 21/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-4996 negative limit
Branch: v2.6
https://github.com/mongodb/docs/commit/76e569de5b9791ad711c42830e60a44eb5f852c6

Comment by Githook User [ 21/May/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-4996 negative limit
Branch: v2.4
https://github.com/mongodb/docs/commit/ec62beb7d70161d89fc6e68f188ca347adba87ef

Generated at Thu Feb 08 07:49:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.