How to run the query?

There are documents in the collection with the field, for example, status, which contains the Boolean value of the model into Mongo, there is the count method, which allows to obtain the number of documents that satisfy the query parameters. So, as a single query to get the number of docks that have status: true and number of docks, which is false? Know that there is a $group, don't know how to use
April 4th 20 at 13:19
0 answer

Find more questions by tags MongoDBMongoose