array(2) { ["_id"]=> NULL ["totalTime"]=> array(1) { ["$sum"]=> string(5) "$time" } } array(1) { [0]=> object(stdClass)#26 (1) { ["cursor"]=> bool(true) } }
Fatal error: Uncaught exception 'MongoResultException' with message 'ms1.mmb.pcb.ub.es:27017: The 'cursor' option is required, except for aggregate with the explain argument' in /var/www/BigNASim/stats.php:47 Stack trace: #0 /var/www/BigNASim/stats.php(47): MongoCollection->aggregate(Array) #1 {main} thrown in /var/www/BigNASim/stats.php on line 47