?
DataSourceDocumentPage
TypeOne page from documentsPage: a batch of documents and a cursor to the next.
One page from documentsPage: a batch of documents and a nextCursor. Pass the cursor back to fetch the next page, and stop when it comes back null.
DataSourceDocumentPage.ts
interface DataSourceDocumentPage { documents: DataSourceDocument[] nextCursor: string | null }
Fields
documents
DataSourceDocument[]
This page's documents.
nextCursor
string | null
Pass back to fetch the next page; null when there are no more.
Page until done
const page = await Docs.documentsPage({ limit: 100 }); if (page.nextCursor) await Docs.documentsPage({ cursor: page.nextCursor });