async function loadAll() {
const all = []
let cursor = null
let hasMore = true
while (hasMore) {
let query = openbridge.products.list().limit(100)
if (cursor) query = query.after(cursor)
const { items, pageInfo } = await query
all.push(...items)
hasMore = pageInfo.hasNextPage
cursor = pageInfo.endCursor
}
return all
}