AWS-DOCUMENTDB不支持$查找操作员,AWS-DocumentDB中的$ lookup的任何替代方案



documentdb不支持" $ lookup"操作员,$ lookup(mongodb(的任何其他选择documentdb。

这是DocumentDB支持操作员的列表。https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis-aggregation-pipeline.html

从mongodb迁移到documentdb,数据已成功迁移,但在运行该应用程序时遇到了此错误。

{ MongoError: Aggregation stage not supported: '$lookup'
at Connection.<anonymous> (/.../node_modules/mongoose/node_modules/mongodb-core/lib/connection/pool.js:443:61)
at emitTwo (events.js:126:13)
at Connection.emit (events.js:214:7)
at processMessage (/.../node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:364:10)
at TLSSocket.<anonymous> (/.../node_modules/mongoose/node_modules/mongodb-core/lib/connection/connection.js:533:15)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at TLSSocket.Readable.push (_stream_readable.js:208:10)
at TLSWrap.onread (net.js:607:20)
ok: 0,
errmsg: 'Aggregation stage not supported: '$lookup'',
code: 304,
name: 'MongoError',
[Symbol(mongoErrorContextSymbol)]: {} }

[更新10/16] Amazon documentdb如何支持$查找:https://aws.amazon.com/about-about-aws/whats/whats-new/2019/10/amazon-documentdb--附加条件 - 聚集pipeline-capabilities/

您可以在此处找到最新的API/stages/Operator的最新列表:https://docs.aws.amazon.com/documentdb/latest/developerguide/mongo-apis.html

此外,请检查以下发布以下发布:https://aws.amazon.com/documentdb/resources/

相关内容

  • 没有找到相关文章

最新更新