mongo shell returning wrong value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hello team,

      mongo shell returning wrong number of doc while using non positive number in limit() function.

      > db.products.find({},{"name":1}).sort({name:-1}).limit(0).size()
      11
      

      please suggest.

            Assignee:
            Unassigned
            Reporter:
            sumit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: