Collection in MongoDB

noun

say it: “kuh-LEK-shun in MONG-goh-DEE-BEE” /kəˈlɛkʃən ɪn ˈmɑŋɡoʊˌdiˌbi/

A named group of documents in a MongoDB database, like a table holds rows, created the first time you insert into it.

What is Collection in MongoDB?

A MongoDB collection holds documents, like a table holds rows. It is created automatically the first time you insert into it.

In a sentence

  • “Each plant is a document in the plants collection.”
  • “The orders collection didn't exist until the first order was saved.”

Level: Novice · More MongoDB terms at this level

Updated