Firebase querying by date not working after deploy
问题 I'm working on a REST API with firebase and I'm querying some data by date. It works fine on the localhost but after deploy, it does not! I'm also using momentjs to help to deal with dates. The date field of my document is a timestamp. Here is how I'm doing my query: const documents = await admin.firestore() .collection('orders') .where('date', '>', moment('2020-06-23')) .where('date', '<', moment('2020-06-24')) .get() I have also done the same thing with Date() instead of momentjs const