Combine MongoDB queries in a single query

时间:2018-12-03 13:08:53

标签: node.js mongodb

How can I extract counts for till yesterday and today's separately in MongoDB. Let's say there are about 100 sales in this month out of which 90 sales are till yesterday and 10 sales are done today. How can I write code to get both the counts separately.

0 个答案:

没有答案