Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to firebase.database().ref push unique id in same unique id firebase

const ref = Firebase.database().ref(`/posts`);
ref.push({ title, categories, content, timestamp})
   .then((snapshot) => {
     ref.child(snapshot.key).update({"id": snapshot.key})
   });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #push #unique #id #unique #id #firebase
ADD COMMENT
Topic
Name
2+8 =