How to get Per Month data from firestore with JS

Solution 1:

You can make query something like this with help of firebase functions:

firestore().collection('AKVO_RND')
    .where('timestamp', '>=', time)
    .where('timestamp', '<=', lastdate)
    .orderBy('timestamp', 'desc')
    .get();

Make sure of using runTimeOptions. It will allow your function to run more time than recommended time