INNER CODE UNIT · JavaScript

items

sensedeep/dynamodb-onetable · samples/overview/src/index.js:162

    let items = (await User.find({}, {fields: ['email', '_type']})).map((i) => i.email)

    /*
        Read a page of users in groups of 25 at a time
     */
    let start
    do {
        users = await User.find({}, {start, limit: 25})
        start = users.start
    } while (users.start)

    /*
        Create a product, not tied to an account.
    */
    let product = await Product.create({name: 'rocket', price: 10.99})

    /*
        Transaction to atomically create an invoice and update the user and account balance

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…