db.getCollection()

db.getCollection(name)
参数:
  • name – The name of a collection.
返回:

A collection.

Use this command to obtain a handle on a collection whose name might interact with the shell itself, including collections with names that begin with _ or mirror the database commands.

MongoDB Manual (Index)

关于

生态系统

格式

资源