Why does mongodb output differently using employees[0], employees[1], employees[2], versus a for loop using employees [i]?

前端 未结 0 1259
忘了有多久
忘了有多久 2020-12-03 08:24

This is the query I am running:

var employees = db.worksOn.distinct("essn", { $or:[ {\'hours\': {$gt: 30}, \'pno\': 1}, {\'hours\': {$lte: 20}, \'pn         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题