@proak/dynogels
v1.0.6
Published
Promise wrapper for dynogels package
Downloads
1
Maintainers
Readme
@proak/dynogels
This code is inspired by dynogels-promisified
Installation
$ npm install @proak/dynogels
Usage
All methods avaiable in dynogels have been promisified and accessed by appending Async
to the method
const dynogels = require('@proak/dynogels')
const User = dynogels.define('User', {
timestamps: true,
hashKey: 'userId',
schema: {
name: joi.string(),
userId: dynogels.types.uuid(),
}
})
const specificUser = await User
.scan()
.where('userId').equals('4549b30d-4a4a-4230-82d4-3286c9348d24')
.execAsync()
//=> User Model