What I am trying to do is to query a Collection in such a way that:
1. I can get the number of times the value true
occurs in all documents
Like, is there a way to check through each document and query for document fields matching true
?
- After that, store the number of times that
true
value occurs in a variable.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…