Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-2059

Fix count query for geo operations in transaction.

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
    • Environment:
      MongoDB 4.0

      Description

      sessionBound.query(Person.class)
          .matching(query(where("location")
              .near(new Point(1, 0)))
      

      fails with

      error 2 (BadValue): $match does not support $geoNear, $near, and $nearSphere
      

      we need to switch over to $geoWithin using $center.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mp911de Mark Paluch
                Reporter:
                cstrobl Christoph Strobl
                Last updater:
                Christoph Strobl
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: