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

GeoIntersects example is incorrect

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: mongodb-2.4
    • Component/s: None
    • Labels:
      None

      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 ] }}}} )

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

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