What is considered as a document in mongodb?

by darrion.kuhn , in category: MySQL , 3 months ago

What is considered as a document in mongodb?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by jerad , 3 months ago

@darrion.kuhn 

In MongoDB, a document is the basic unit of data storage, similar to a row in a relational database. It is a JSON-like data structure that consists of key-value pairs, where keys are strings and values can be various data types such as strings, numbers, arrays, nested objects, and binary data. Each document is stored in a collection, which is analogous to a table in a relational database. Documents in MongoDB are flexible, meaning that different documents in the same collection can have different fields and structures.

Related Threads:

How to view an object embedded with a document in mongodb?
How to add new document in an embedded document in mongodb?
How to cascade delete document in mongodb?
How to find a particular sub-document in mongodb?
How to update a whole document in mongodb using php?
How to use intersect operator in mongodb?