Function iterateDocuments

Asynchronous generator function that iterates over documents.

If the response length is greater than the specified limit.

  • Type Parameters

    Parameters

    • config: IConfig<Data>

      The configuration object.

    Returns AsyncGenerator<Data[], void, unknown>

    An asynchronous generator that yields an array of documents.