vert-x3 / vertx-mongo-client

Mongo Client for Eclipse Vert.x
http://vertx.io
Apache License 2.0
58 stars 98 forks source link

Handle object ids nested in query documents #311

Closed tsegismont closed 10 months ago

tsegismont commented 10 months ago

Backport of PR #309 provided by @liuchong

Motivation:

If we give a query when "_id" field in a nested value like:

{
   "$and":[
      {
         "_id":"an-id-field"
      },
      {
         "some":"other"
      }
   ]
}

then, the nested "_id" will not be encoded. I added a deep version of this method for handling this, we should only need this in query or filter.

tsegismont commented 10 months ago

Closed by c65c858