Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19870

mongo shell returning wrong value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Shell
    • None
    • ALL

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sumitthakur040388@gmail.com sumit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: