data.tablename.scan

Paginate through all rows in a table

Example:

@app
testapp

@http
get /

@tables
notes
  noteID *String

And then in a Lambda function:

// src/html/get-index/index.js
let arc = require('@architect/functions')
let data = require('@architect/data')

async function handler(req, res) {
  let notes = await data.notes.scan({})
  res({
    html: `count: ${notes.Count}`
  })
}

exports.handler = arc.http(handler)

Next: put