Skip to content

A npdynamodb plugin for casting hash and range key to actual attribution type.

Notifications You must be signed in to change notification settings

noppoMan/npdynamodb-typecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A npdynamodb plugin for casting hash and range key to actual attribution type.

Resources

Stars

Watchers

Forks

Packages

No packages published