What is considered as a document in mongodb?

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

What is considered as a document in mongodb?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by jerad , 8 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.