Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-774

C# Driver still uses deprecated $within instead of $geoWithin

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 1.8.1
    • None
    • None
    • Minor Change

    Description

      Good afternoon,

      I was reading over the geospatial query capabilities of mongodb in the documentation and in parallel was playing with the c# driver wroting some sample queries, but when I came to the $geoWithin operator, which apparently replace the deprecated $within one, I saw that the QueryBuilder.cs file still contains the aforementioned $within operator.. instead of $geoWithin (see https://github.com/mongodb/mongo-csharp-driver/blob/master/MongoDB.Driver/Builders/QueryBuilder.cs#L712).

      Not sure how this affects actual usage (atm it seems to work just fine), but I thought I'd report it nevertheless so the driver gets updated to $geoWithin as well.

      Cheers,
      -J

      Attachments

        Activity

          People

            Unassigned Unassigned
            jbattermann Jörg B.
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: