What are types of data models in mongodb?
Answer / Vikash Vishnoi
MongoDB uses flexible, JSON-like documents as the basic unit of storage. There isn't a predefined schema, and you can store different fields in each document, making it suitable for NoSQL and semi-structured data. However, MongoDB does have built-in data models like:
1. Document: A collection of key-value pairs. Each document is stored as a BSON object.
2. Array: An ordered list of elements, which can be documents, other arrays, or other data types.
3. Embedded Document: A document that contains references to other documents.
4. Reference: A way to store the reference of one document in another document.
5. Database: A collection of related documents. Multiple databases can exist within a single MongoDB instance.
| Is This Answer Correct ? | 0 Yes | 0 No |
By default, which replica sets are used to write data?
What do you know about mongodb?
Is nosql database types?
How does sharding work with replication?
What is primary and secondary replica set in mongodb?
How is query injection and how to handle it in mongodb?
Why it is called mongodb?
How do I show a collection in mongodb?
What language you can use with mongodb?
What type of dbms is mongodb?
How to check duplicate data in mongodb?
What is index and how it is used in mongodb?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)