in firebase I want to sort the value of a certain field in descending order for a certain period of time and bring the data. I want to know how.
const currentTime = firebase.firestore.Timestamp.now();
const twentyFourHoursAgo = new firebase.firestore.Timestamp(currentTime.seconds - (24 * 60 * 60), currentTime.nanoseconds);
// db.collection('product').where('Timestamp', '>', twentyFourHoursAgo).orderBy('Timestamp').orderBy('participantCount', 'desc').startAfter(lastVisibleDoc).limit(3).get().then((결과) => {}
I've tried this now, but it doesn't seem to work.
No error, but no data coming in