How to check the granularity of mongo locks

  node.js, question

How do you check the lock granularity of your mongodb? Mongodb has multiple levels of lock granularity. Do you need to set it yourself?

No, the system automatically controls and uses the most efficient and reasonable lock.
However, the MMAPv1 engine only supports locks at the collection level, while the WT supports document level.