MongoDB Tutorial - 2 - Documents vs Collections

Опубликовано: 12 Январь 2016
на канале: JsWiz
5,456
48

We'll be using Documents and Collections throughout this course. So its important that you have a clear understanding of what the differences are.

Full Course: http://jswiz.net

A document is defined as a record in a mongodb collection and the basic unit of data in mongoDB. Documents look like JSON objects but they exist as BSON.

Here's an example of a Document that stores some data for an article. You can tell its stored using BSON because there's quotation marks around both the key/value pairs.

A collection is a grouping of mongoDB documents. Typically, all documents in a collection have a similar or related purpose.

And here is an example of a collection. In this collection, we are storing 2 documents. And each document has some data about an article.


На этой странице сайта вы можете посмотреть видео онлайн MongoDB Tutorial - 2 - Documents vs Collections длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь JsWiz 12 Январь 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,456 раз и оно понравилось 48 зрителям. Приятного просмотра!