Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are types of data models in mongodb?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define array in mongoose schema?

2


what is the command syntax for inserting a document?

6


How did mongodb get its name?

2