async function offerDetails() { const { result: offers } = await client.offers.readAll().toArray(); _.map(offers, function (item) { console.log(item.resource + " -> " + item.content.offerThroughput) }); }
// static methods used at the class level static async find() { // query to return all items const querySpec = { query: 'SELECT * FROM root r WHERE r.country = @country', parameters: [ { name: '@country', value: 'usa' } ] } const { resources: results } = await container.items.query(querySpec).fetchAll(); return results; }