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

Wrong shape used in example for $within operator

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      http://docs.mongodb.org/manual/reference/operators/#_S_within

      In the above page, the description of the $within operator contains a mistake where it talks about polygon shapes. The example for polygons should be

      "db.collection.find( { location: { $within:

      { $polygon: [[100,120], [100,100], [120,100], [240,200]] }

      } } );"

      "$box" should be replaced by "$polygon".

      Attachments

        Activity

          People

            epc Ed Costello
            choefele Claus Hoefele
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 9 weeks, 1 day ago