0.0.2 • Published 9 years ago

npdynamodb-typecast v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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();
});