Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get collection in ascending order firestore

  var db = firebase.firestore();
        db.collection('form')
            .orderBy('id', 'asc') // optional
            .onSnapshot((snapshot) => {
                snapshot.docs.map((doc) => {
                    // console.log(doc.data());
                    let data = doc.data();
}});
 
PREVIOUS NEXT
Tagged: #collection #ascending #order #firestore
ADD COMMENT
Topic
Name
7+7 =