npdynamodb-typecast

0.0.2 • Public • Published

npdynamodb-typecast

A npdynamodb plugin for casting hash and range key with actual attribute type.

Usage

var typeCast = require('npdynamodb-typecast');

var npd = npdynamodb.createClient(dynamodb, {
  initialize: function(){
    this.callbacks('beforeQuery', typeCast());
  }
});

npd().table('foo').where('hk', 1).where('rk', '2').then(function(data){
  done();
});

Package Sidebar

Install

npm i npdynamodb-typecast

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • noppoman