Is there a good object mapper for Amazons dynamodb(through aws sdk) which can be used in nodejs?

前端 未结 6 1765
难免孤独
难免孤独 2021-02-01 03:07

Maybe the question does not apply to dynamoDB due to it not being Relational Db. However, I\'m looking for a good object mapper which can be used in nodejs and aws sdk to map e

6条回答
  •  醉话见心
    2021-02-01 03:09

    After looking over all the posts I landed on https://github.com/awspilot/dynamodb-oop

    It doesn't hide the API but instead just wraps it in a nice, fluent way with promises even and you inject your version of the aws-sdk. It's similar to dynamodb-data-types but also wraps the methods too (not just the data types).

    Extra bonus, the same author has https://github.com/awspilot/dynamodb-sql Didn't use the sql wrapper but I can see how some people may prefer that.

    Dynamoose is obviously inspired by mongoose and is a good choice if you have a well-defined schema and/or want to be abstracted away from the DynamoDB details.

提交回复
热议问题