1var key1 = postsRef.push().key;
2var key2 = postsRef.push().key;
3var updates = {};
4updates[key1] = {
5 author: "gracehop1",
6 title: "Announcing COBOL, a New Programming Language"
7 };
8updates[key2] = {
9 author: "gracehop2",
10 title: "Announcing COBOL, a New Programming Language"
11 };
12ref.update(updates);
13