Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let params = {
- ExpressionAttributeValues:{
- ":v1": {
- S: event.email
- }
- },
- KeyConditionExpression: "email = :v1",
- ProjectionExpression: "password",
- TableName: process.env.DynamoName
- };
- dynamo.query(params, (err,data) => {
- if(err) console.log('err',err);
- else console.log('pass',data.Items[0].password);
- })
- {
- Items:
- [ { password: [Object] } ],
- Count: 1,
- ScannedCount: 1
- }
Add Comment
Please, Sign In to add comment