How do I get the size .count of a returned array
db.students.distinct('class_id')
This query will get back a array, how do I get the size/length/count of this array?
How do I get the size .count of a returned array
This query will get back a array, how do I get the size/length/count of this array? |
|||
|
Remember this is javascript code, thus you can get the count of an array using
|
|||
|