How To Firebase.database (). Ref Push ID Unik dalam ID Firebase Unik yang Sama

const ref = Firebase.database().ref(`/posts`);
ref.push({ title, categories, content, timestamp})
   .then((snapshot) => {
     ref.child(snapshot.key).update({"id": snapshot.key})
   });
Brainy Bison