Skip to content

chomman/dynamodb-projection-expression-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamodb-projection-expression-helper

Make dynamodb projection expressions by string.

Code Example

const projectionExp = require('dynamodb-projection-expression-helper');

const expressions = projectionExp('id, name, url, location, description');

console.log(result);
/*
{  
   ProjectionExpression: '#id, #name, #url, #location, #description',
   ExpressionAttributeNames: {  
      '#id': 'id',
      '#name': 'name',
      '#url': 'url',
      '#location': 'location',
      '#description': 'description'
   }
}

Installation

npm install dynamodb-projection-expression-helper --save

Tests

npm test

About

Make easily dynamodb projection expression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published