- This method is deprecated. If you want to count the number of documents in a collection, e.g. count({}), use the estimatedDocumentCount() function instead. Otherwise, use the countDocuments() function instead.
- count ({})方法已弃用。如果要计算集合中的文档数 (例如count ({})), 请改用estimatedDocumentCount() 函数。否则, 请改用countDocuments()函数。
Mongoose - count和countDocuments方法
最新推荐文章于 2025-01-17 15:57:06 发布