shiftcode / dynamo-easy

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.
https://shiftcode.github.io/dynamo-easy/
MIT License
204 stars 27 forks source link

Local configuration and single table #341

Open PabloArrietaL opened 3 years ago

PabloArrietaL commented 3 years ago
  1. How can I configure dynamo-easy to work with local and remote dynamodb?
  2. Is it possible to create a single table to store the information of all the models?
hookercookerman commented 3 years ago
  1. You configure the dynamodb Client itself to point to an endpoint of your choosing, the client is then passed.

https://shiftcode.gitbook.io/dynamo-easy/api/dynamo-store

  1. this is a very open question, DynamoStore does not support single table design in terms of mapping from retrieved items; but I find this is not really a major problem you know what you want to retrieve in terms of "types" so you just create a "DynamoStore" to match what you want.