例如,我在 MongoDB 中有以下数据:
{ "_id" : ObjectId("524091f99c49c4c3f66b0e46"), "hour" : 10, "incoming", 100}
{ "_id" : ObjectId("5240a045dbeff33c7333aa51"), "hour" : 11, "incoming", 200}
{ "_id" : ObjectId("5240a2ecda0d37f35c618aca"), "hour" : 12, "incoming", 300}
现在我想查询“SUM 11 - 12 之间的传入数量”(结果应该是 500),我怎么能用 Mongo Shell 做到这一点?