Constructs a new SetIterator.
The expected type of the items returned from Fauna on each iteration
The Client that will be used to fetch new data on each iteration
An existing fauna Set (Page or EmbeddedSet) or function which returns a promise. If the Promise resolves to a Page or EmbeddedSet then the iterator will use the client to fetch additional pages of data.
Optional
options: QueryOptionsa QueryOptions to apply to the queries. Optional.
Though you can use SetIterator class directly, it is
most common to create an instance through the Client.paginate paginate
method.
Implement AsyncGenerator
Constructs a new FlattenedSetIterator from the current instance
A new FlattenedSetIterator from the current instance
Implement AsyncGenerator.next
Implement AsyncGenerator.return
Implement AsyncGenerator.throw
Static
fromInternal
Constructs a new SetIterator from an Page or EmbeddedSet
Though you can use SetIterator.fromPageable directly, it is intended as a convenience for use in the Client.paginate method
Optional
options: QueryOptionsStatic
fromInternal
Constructs a new SetIterator from an Query
Though you can use SetIterator.fromQuery directly, it is intended as a convenience for use in the Client.paginate method
Optional
options: QueryOptions
A class to provide an iterable API for fetching multiple pages of data, given a Fauna Set