Just sugar syntax over AWS DynamoDB
yarn add @nutshelllab/dynamodb-table
import Table from '@nutshelllab/dynamodb-table'
const usersStore = new Table('users')
(async ({ id, ...data }) => {
const users = await usersStore.put({
key: { id },
data
})
})
import Table from '@nutshelllab/dynamodb-table'
const postsStore = new Table('users_posts')
(async ({ userId, id, ...data }) => {
const users = await usersStore.put({
key: { userId, id },
data
})
})
Type: string
Arg1 description
Type: Object
Arg2 description
MIT © Nutshell