MongoDB – Total number of objects in array vs field
I need to get total count of objects in the "photo" array field, and compare it to the value in "mls_media_count" field, so that I can detect when the values do not match. open_houses:null open_houses_lock:false photos:Array 0:Object 1:Object 2:Object 3:Object…