Unhandled rejection MongoError: CMD_NOT_ALLOWED: mapreduce

Unhandled rejection MongoError: CMD_NOT_ALLOWED: mapreduce

我正在尝试在免费 Mongodb-atlas-cloud 计划中使用 mapReduce 方法,但我遇到了这个错误

at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at TLSSocket.Readable.push (_stream_readable.js:134:10)
at TLSWrap.onread (net.js:547:20)
Unhandled rejection MongoError: CMD_NOT_ALLOWED: mapreduce
at Function.MongoError.create ...

注意:我可以毫无问题地书写和阅读

来自 MongoDB 云服务支持

Mapreduce is not allowed in free tier at this moment. https://docs.atlas.mongodb.com/unsupported-commands/