Fauna v10 .NET/C# Driver
1.0.1
Loading...
Searching...
No Matches
repo.git
Fauna
Util
Extensions
PaginationExtensions.cs
Go to the documentation of this file.
1
using
Fauna.Types
;
2
3
namespace
Fauna.Util.Extensions
;
4
8
public
static
class
PaginationExtensions
9
{
16
public
static
async IAsyncEnumerable<T> FlattenAsync<T>(
this
IAsyncEnumerable<
Page<T>
> pages)
17
{
18
await
foreach
(var page
in
pages)
19
{
20
foreach
(var item
in
page.Data)
21
{
22
yield
return
item;
23
}
24
}
25
}
26
}
Fauna.Types
Definition
BaseRef.cs:3
Fauna.Types.Page< T >
record Page< T >(IReadOnlyList< T > Data, string? After)
Represents a page in a dataset for pagination.
Fauna.Util.Extensions
Definition
PaginationExtensions.cs:3
Generated by
1.9.8