The official C8 Dynamo JavaScript driver.
npm install mmdynamoMacrometa DynamoDB client for CloudFlare & Edge Workers.
With npm do:
```
npm install mmdynamo
Or you can also reference different formats straight from unpkg.com:
https://unpkg.com/mmdynamo@0.2.0/dist/mmdynamo.esm.js
UMD:
https://unpkg.com/mmdynamo@0.2.0/dist/mmdynamo.umd.js
https://unpkg.com/mmdynamo@0.2.0/dist/mmdynamo.cjs.js
`js
import Client from "mmdynamo";
const client = new Client({
agent : "fetch",
apiKey : "xxxx",
federationUrl : "http://xxx.xxx.macrometa.io",
absoluetPath : true // this is an optional parameter to be passed when you want to use the endpoint as it is
});
`
`js`
const response = await client.createTable();
console.log(response);
`js`
const response = await client.listTables();
console.log(response);
`js`
const response = await client.putItem({...});
console.log(response);
`js`
const response = await client.getItem({...});
console.log(response);
`js`
const response = await client.deleteItem({...});
console.log(response);
`js``
const response = await client.deleteTable({...});
console.log(response);
For payload reference read API Reference.