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

GeoIntersects example is incorrect

    XMLWordPrintableJSON

Details

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

    Description

      http://docs.mongodb.org/manual/release-notes/2.4/#op._S_geoIntersects

      The example is missing a field. Should probably be:

      db.collection.find( { loc: { $geoIntersects: { $geometry: { "type": "Point", "coordinates": [ 40, 5 ] }}}} )

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            aheckmann Aaron Heckmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 51 weeks, 2 days ago