Nested objects and arrays
📖 Scenario: You are setting up a Firebase Firestore database for a small online bookstore. You want to organize the data so that each book document contains nested information about the author and an array of reviews.
🎯 Goal: Create a Firestore document structure with nested objects for author details and an array of review objects inside a book document.
📋 What You'll Learn
Create a Firestore document called
book with nested author informationInclude an array called
reviews inside the book documentEach review in the
reviews array should be an object with reviewer and comment fieldsUse valid Firestore data types and structure
💡 Why This Matters
🌍 Real World
Organizing complex data like books with authors and reviews in Firestore for a real online bookstore.
💼 Career
Understanding nested data structures and arrays in Firestore is essential for backend cloud developers working with NoSQL databases.
Progress0 / 4 steps