MongoDB

  • mongoDB database structured data as documents. (similar to JSON objects)
  • Documents correspond to objects in code.
  • Hierarchy of the MongoDB
    • DataBase
    • Collection
    • Document

Document Model

  • mongoDB documents are displayed in JSON format but they store in BSON.
    • compare to JSON BSON are supported additional data types.
Object IDs
  • A data type that can be used to create a unique id for the required id filed.

  • All the documents need to have a object id.

  • MongoDB support polymorphic data.

Data Modeling - Mongo Connecting to a MongoDB Database