How to count elements in array field in a mongoose query

前端 未结 0 1684
后悔当初
后悔当初 2020-12-16 19:54

I have a query like this:

const posts = await Post.find(req.body)

and its returns a colection of post documents like this:


           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题