MongoUpdateMessage constructor

MongoUpdateMessage(
  1. String collectionFullName,
  2. Map<String, dynamic> selector,
  3. dynamic document,
  4. int flags,
)

Implementation

MongoUpdateMessage(String collectionFullName, Map<String, dynamic> selector,
    document, this.flags)
    : _collectionFullName = BsonCString(collectionFullName),
      _selector = BsonMap(selector) {
  if (document is ModifierBuilder) {
    document = document.map;
  }
  _document = BsonMap(document as Map<String, dynamic>);
  opcode = MongoMessage.update;
}