1 line
93 B
JavaScript
1 line
93 B
JavaScript
|
db.getCollection('books').aggregate({$match:{$or:[{state:1}, {state:0}]}}, { $count:"count"})
|