Complete the code to add a nested object to Firestore.
db.collection('users').doc('user1').set({ profile: [1] })
The nested object must be an object with keys and values, not an array or string.
Complete the code to add an array of strings inside a Firestore document.
db.collection('tasks').doc('task1').set({ tags: [1] })
Arrays in Firestore are represented as JavaScript arrays with square brackets [].
Fix the error in the nested object assignment to Firestore.
db.collection('orders').doc('order1').set({ details: [1] })
The nested object must be an object literal, not a string or incomplete syntax.
Fill both blanks to create a nested object with an array inside Firestore.
db.collection('projects').doc('proj1').set({ info: [1], tags: [2] })
The 'info' field is an object, and 'tags' is an array of strings.
Fill all three blanks to create a Firestore document with nested objects and arrays.
db.collection('events').doc('event1').set({ organizer: [1], attendees: [2], details: [3] })
The 'organizer' and 'details' fields are objects, while 'attendees' is an array of strings.
