commands property
This List contains the commands. Ex.
[
{'insert': 'abc', 'documents': {'a', 1}, {'a', 2}, {'a', 3}, {'a', 4}
}
{'delete': 'abc', 'deletes': {'filter': {'a': 1}}
}
]
This could be the result of the following:
collection.bulkWrite([
{'insertOne': {'document: {'a', 1}}},
{'insertMany': {'documents': {'a', 2}, {'a', 3}
}},
{'insertOne': {'document: {'a', 4}}},
{'deleteOne': {'filter': {'a': 1}}}
])
Implementation
List<Map<String, Object>> commands = <Map<String, Object>>[];