@proak/dynogels

1.0.6 • Public • Published

@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

Package Sidebar

Install

npm i @proak/dynogels

Weekly Downloads

16

Version

1.0.6

License

ISC

Unpacked Size

2.23 kB

Total Files

3

Last publish

Collaborators

  • emasters