INNER CODE UNIT · TypeScript

items

sensedeep/dynamodb-onetable · samples/typescript/src/index.ts:147

    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 next: any = null
    do {
        users = await User.find({}, {next, limit: 25})
        next = users.next
    } while (users.next)

    /*
        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…