data._db

Get an instance of AWS.DynamoDB from the aws-sdk

Example, given the following .arc file:

@app
testapp

@http
get /

@tables
bikes
  bikeID *String

@index
bikes
  type *String

Connect directly to DynamoDB.

let data = require('@architect/data')

// list all tables 
let tables = await data._db.listTables({})
// result: {Tables: ['testapp-staging-bikes', 'testapp-production-bikes']}

Next: data._doc