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