获取查询数量

collection.count() 参数

  1. db.collection('goods').where({ category: 'computer', type: { memory: 8, }}).count().then(function(res) {})

响应参数