Recall & Review
beginner
What is a document in the Document-collection data model?
A document is a single record that stores data as key-value pairs, similar to a JSON object. It is the basic unit of storage in Firebase's document-collection model.
Click to reveal answer
beginner
What is a collection in Firebase's Document-collection data model?
A collection is a group of documents. It acts like a folder that holds multiple documents, but it does not store data itself.
Click to reveal answer
intermediate
How are documents and collections related in Firebase?
Documents live inside collections. Each collection contains many documents, and each document can contain subcollections, creating a tree-like structure.
Click to reveal answer
intermediate
Can documents contain other documents directly in Firebase?
No, documents cannot contain other documents directly. Instead, documents can contain subcollections, which then contain documents.
Click to reveal answer
beginner
Why is the Document-collection data model useful for apps?
It organizes data in a simple, flexible way that matches real-world objects. It allows easy access and updates to small pieces of data without loading everything.
Click to reveal answer
In Firebase, what does a collection contain?
✗ Incorrect
A collection contains documents, which are the main data units.
Which of these can a document contain directly?
✗ Incorrect
Documents can contain subcollections, not other documents directly.
How is data stored inside a document?
✗ Incorrect
Documents store data as key-value pairs, similar to JSON objects.
What is the best way to think about a collection?
✗ Incorrect
A collection is like a folder that holds many documents.
Can a document exist without being inside a collection?
✗ Incorrect
Documents always live inside collections in Firebase.
Explain the relationship between documents and collections in Firebase's Document-collection data model.
Think of collections as folders and documents as files inside them.
You got /4 concepts.
Describe why the Document-collection data model is useful for organizing app data.
Consider how apps need to store and retrieve data efficiently.
You got /4 concepts.