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);