As mentioned.
MongoDB can use the count method to count the number of documents in a collection, which is a collection method, but how to count the number of embedded sub-documents? I checked the official documentation and couldn't find a suitable method in the aggregation framework. I hope someone can give me some advice.
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...