1.3.4 • Published 10 months ago

aws-sdk-dynamo-db v1.3.4

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

Require package npm (Export functions i need to use)

const { getItem, saveItem, updateItem } = require('aws-sdk-dynamo-db');

GET ITEM

let data = {
    'pk' :pk,
    'sk' : sk,
};
const item = await getItem(data, 'stringTableName');

UPDATE ITEM

const condParams = {'pk' : pk, 'sk' : sk};
const item = await getItem(params, 'stringTableName');

if(item){
    const setParams = {'validate' : true};
    await updateItem(
        condParams, 
        setParams,
        'stringTableName'
    ).then((data) => {
        console.log("update item: ", data);
    });
}

SAVE ITEM

let data = {
    'pk' : pk,
    'sk' : sk,
};
await saveItem(data, 'stringTableName');
1.3.4

10 months ago

1.3.3

10 months ago

1.3.2

10 months ago

1.3.1

10 months ago

1.2.8

1 year ago

1.3.0

1 year ago

1.2.9

1 year ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.0.2

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.0.9

3 years ago

1.1.7

3 years ago

1.0.8

3 years ago

1.1.6

3 years ago

1.0.7

3 years ago

1.1.5

3 years ago

1.0.6

3 years ago

1.1.4

3 years ago

1.0.5

3 years ago

1.1.3

3 years ago

1.0.4

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago