MongoInsertMessage constructor

MongoInsertMessage(
  1. String collectionFullName,
  2. List<Map<String, dynamic>> documents, [
  3. int flags = 0
])

Implementation

MongoInsertMessage(
    String collectionFullName, List<Map<String, dynamic>> documents,
    [this.flags = 0])
    : _collectionFullName = BsonCString(collectionFullName),
      _documents = <BsonMap>[] {
  for (var document in documents) {
    _documents.add(BsonMap(document));
  }
  opcode = MongoMessage.insert;
}