UNPKG

@jitterbit/npdynamodb

Version:

A Node.js Simple Query Builder and ORM for AWS DynamoDB.

27 lines (20 loc) 427 B
'use strict'; module.exports = Chainable; function Chainable(){ this.attr = { keyType: null, optional: false }; } Chainable.prototype.attributes = function(){ return this.attr; }; Chainable.prototype.hashKey = function(){ this.attr.keyType = 'HASH'; }; Chainable.prototype.rangeKey = function(){ this.attr.keyType = 'RANGE'; }; Chainable.prototype.optional = function(){ this.attr.optional = true; };