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 DynamoDB types any more. We've got you covered.
Built with :heart: by shiftcode.
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))
Made with :heart: by @michaelwittwer and all these wonderful contributors (emoji key):
Michael Wittwer ๐ค ๐ป โ ๏ธ ๐ | Simon Mumenthaler ๐ค ๐ป โ ๏ธ ๐ | Michael Lieberherr ๐ป ๐ โ ๏ธ |
This project follows the all-contributors specification. Contributions of any kind welcome!