In MongoDB, if we update a Document the operation is atomic. I believed this is achieved by having an X lock on the Document.
When we do insertOne into a collection, will it lock the collection? For example, if I have multiple threads doing insertOne into the same collection concurrently (each inserted Doc is unique), can all the insertions be done concurrently ?
Using MongoDB v5.0+