Answers for "push and array of objects to firebase"

0

push and array of objects to firebase

var key1 = postsRef.push().key;
var key2 = postsRef.push().key;
var updates = {};
updates[key1] = {
      author: "gracehop1",
      title: "Announcing COBOL, a New Programming Language"
    };
updates[key2] = {
      author: "gracehop2",
      title: "Announcing COBOL, a New Programming Language"
    };
ref.update(updates);
Posted by: Guest on June-16-2021

Code answers related to "push and array of objects to firebase"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language