Guest User

Untitled

a guest
Dec 17th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. let params = {
  2. ExpressionAttributeValues:{
  3. ":v1": {
  4. S: event.email
  5. }
  6. },
  7. KeyConditionExpression: "email = :v1",
  8. ProjectionExpression: "password",
  9. TableName: process.env.DynamoName
  10. };
  11.  
  12. dynamo.query(params, (err,data) => {
  13. if(err) console.log('err',err);
  14. else console.log('pass',data.Items[0].password);
  15. })
  16.  
  17. {
  18. Items:
  19. [ { password: [Object] } ],
  20. Count: 1,
  21. ScannedCount: 1
  22. }
Add Comment
Please, Sign In to add comment