Answers for "get value from the firestore in ascending order"

2

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();
}});
Posted by: Guest on October-20-2021
1

firestore order number ascending

firestoreDb.collection("ideas").orderBy("number", Query.Direction.ASCENDING)
Posted by: Guest on January-30-2021

Browse Popular Code Answers by Language