Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-5897

Comment on: "manual/reference/method/cursor.max.txt"

    XMLWordPrintableJSON

Details

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

    Description

      Hi,

      db.products.find().min(

      { price: 1.39 }

      ).max(

      { price: 1.99 }

      ).hint(

      { price: 1 }

      )

      returns only the following single document:

      { "_id" : 10, "item" : "orange", "type" : "navel", "price" : 1.39 }

      but in the document ( http://docs.mongodb.org/manual/reference/method/cursor.max/#cursor.max) , it displays more than one document.

      Thanks & Regards,
      Racki

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            rackik@gmail.com Rackimuthu Kandaswamy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 30 weeks ago