Function resolveDocuments
resolveDocuments<T extends unknown>( iterator: AsyncGenerator<T | T[], void, unknown>,): Promise<T[]> Parameters
- iterator: AsyncGenerator<T | T[], void, unknown>
Returns Promise<T[]>
- A promise that resolves to the flattened array of documents.
Resolves the documents from an async generator and returns them as a flattened array.