Mongodb aggregate to find record that has both value of a boolean
I have these documents: [ { "id": 1, "condition": true }, { "id": 1, "condition": false }, { "id": 2, "condition": true }, ] In this case I want the output to be "id": 1, since it has condition as…