We are using the MongoDB C# driver to insert a collection of records using InsertManyAsync
.
We currently have code that iterates the entire collection after InsertManyAsync
returns, confirming that the ID's are populated. I would expect that the driver takes care of this already, but I have not found documentation that says so.
If InsertManyAsync
returns successfully (i.e., doesn't throw an exception), does the driver guarantee that the ID's of the provided collection are populated?