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.
npm install @env0/dynamo-easy
A dynamoDB client which provides an easy to use fluent api to execute requests. It supports typescript decorators, to define the necessary metadata for your models. You don't need to care about the mapping of javascript types to their dynamo types any more. We got you covered.
Built with :heart: by shiftcode.
typescript
import { Model, PartitionKey, DynamoStore } from '@shiftcoders/dynamo-easy'@Model()
export class Person {
@PartitionKey()
id: string
name: string
yearOfBirth: number
}
const personStore = new DynamoStore(Person)
personStore
.scan()
.whereAttribute('yearOfBirth').equals(1958)
.exec()
.then(res => console.log('ALL items with yearOfBirth == 1958', res))
``Michael Wittwer 🤔 💻 ⚠️ 📖 | Simon Mumenthaler 🤔 💻 ⚠️ 📖 | Michael Lieberherr 💻 📖 ⚠️ |
This project follows the all-contributors specification. Contributions of any kind welcome!