oid static method

Map<String, Object?> oid(
  1. ObjectId id
)

Matches a document based on its ObjectId.

Example:

var query = DQ.oid(ObjectId.parse('507f191e810c19729de860ea')); // { '_id': ObjectId(...) }

Implementation

static Map<String, Object?> oid(ObjectId id) {
  return {
    '_id': id,
  };
}