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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 1.8.1
    • Component/s: None
    • Labels:
      None
    • Minor Change

      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

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

              Created:
              Updated:
              Resolved: