- mapDocuments<T, U>(iterator, callbackfn): AsyncGenerator<Awaited<U>, void, unknown>
Parameters
- iterator: AsyncGenerator<T | T[], void, unknown>
- callbackfn: ((value: T) => U | Promise<U>)
- (value): U | Promise<U>
Returns U | Promise<U>
Returns AsyncGenerator<Awaited<U>, void, unknown>
- A promise that resolves to the flattened array of documents.
Maps the documents from an async generator and yield them