Answers for "firestore update map"

0

firestore update map

let initialData = {
  name: 'Frank',
  age: 12,
  favorites: {
    food: 'Pizza',
    color: 'Blue',
    subject: 'recess'
  }
};

let updateNested = db.collection('users').doc('Frank').update({
  age: 13,
  'favorites.color': 'Red'
});
Posted by: Guest on June-05-2020

Code answers related to "firestore update map"

Code answers related to "Javascript"

Browse Popular Code Answers by Language