1using System.Runtime.CompilerServices;
36 CancellationToken cancel =
default)
60 CancellationToken cancel =
default);
86 CancellationToken cancel =
default);
111 CancellationToken cancel =
default);
138 CancellationToken cancel =
default)
167 CancellationToken cancel =
default)
194 CancellationToken cancel =
default);
221 CancellationToken cancel =
default);
250 CancellationToken cancel =
default);
280 CancellationToken cancel =
default);
308 CancellationToken cancel =
default);
337 CancellationToken cancel =
default);
350 internal abstract Task<QuerySuccess<T>> QueryAsyncInternal<T>(
355 CancellationToken cancel
363 CancellationToken cancel =
default)
365 QueryAsync<T>(query, Serializer.Generate<T>(MappingCtx), queryOptions, cancel);
370 CancellationToken cancel =
default) =>
377 CancellationToken cancel =
default) =>
378 QueryAsyncInternal(query, serializer, MappingCtx, queryOptions, cancel);
384 CancellationToken cancel =
default) =>
390 CancellationToken cancel =
default)
392 PaginateAsync(query, Serializer.Generate<T>(MappingCtx), queryOptions, cancel);
397 CancellationToken cancel =
default)
399 PaginateAsync(page, Serializer.Generate<T>(MappingCtx), queryOptions, cancel);
404 CancellationToken cancel =
default) =>
405 PaginateAsync(query, Serializer.Dynamic, queryOptions, cancel);
410 CancellationToken cancel =
default) =>
411 PaginateAsync(page, Serializer.Dynamic, queryOptions, cancel);
417 CancellationToken cancel =
default)
419 var serializer =
new PageSerializer<T>(elemSerializer);
420 return PaginateAsyncInternal(query, serializer, queryOptions, cancel);
427 CancellationToken cancel =
default)
429 var serializer =
new PageSerializer<T>(elemSerializer);
430 return PaginateAsyncInternal(page, serializer, queryOptions, cancel);
437 CancellationToken cancel =
default)
440 var serializer =
new PageSerializer<object?>(elemObjSer);
441 return PaginateAsyncInternal(query, serializer, queryOptions, cancel);
448 CancellationToken cancel =
default)
451 var serializer =
new PageSerializer<object?>(elemObjSer);
452 return PaginateAsyncInternal(page, serializer, queryOptions, cancel);
458 internal async IAsyncEnumerable<Page<T>> PaginateAsyncInternal<T>(
460 PageSerializer<T> serializer,
462 [EnumeratorCancellation] CancellationToken cancel =
default)
464 var p = await QueryAsyncInternal(query,
470 await
foreach (var page
in PaginateAsyncInternal(p.Data, serializer, queryOptions, cancel))
476 private async IAsyncEnumerable<Page<T>> PaginateAsyncInternal<T>(
478 PageSerializer<T> serializer,
480 [EnumeratorCancellation] CancellationToken cancel =
default)
484 while (page.After is not
null)
488 var response = await QueryAsyncInternal(q,
494 page = response.Data;
The base class for Client and DataContext.
IAsyncEnumerable< Page< T > > PaginateAsync< T >(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
IAsyncEnumerable< Page< object?> > PaginateAsync(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
IAsyncEnumerable< Page< object?> > PaginateAsync(Query query, ISerializer elemSerializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
Task< QuerySuccess< object?> > QueryAsync(Query query, ISerializer serializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database and returns the typed result...
IAsyncEnumerable< Page< object?> > PaginateAsync(Page< object?> page, ISerializer elemSerializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
Task< QuerySuccess< object?> > QueryAsync(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database.
Task< QuerySuccess< T > > QueryAsync< T >(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database and returns the typed result...
IAsyncEnumerable< Page< object?> > PaginateAsync(Page< object?> page, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
A class representing the mapping context to be used during serialization and deserialization.
Represents an FQL query expression. This class encapsulates a list of IQueryFragment instances,...
Represents the abstract base class for constructing FQL queries.
Represents a literal part of an FQL query. This class is used for embedding raw string values directl...
Represents the options for customizing Fauna queries.
Represents a client for interacting with a Fauna.
IAsyncEnumerable< Page< T > > PaginateAsync< T >(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
IAsyncEnumerable< Page< object?> > PaginateAsync(Page< object?> page, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
IAsyncEnumerable< Page< object?> > PaginateAsync(Page< object?> page, ISerializer elemSerializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
Task< QuerySuccess< object?> > QueryAsync(Query query, ISerializer serializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database and returns the typed result...
Task< QuerySuccess< T > > QueryAsync< T >(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database and returns the typed result...
IAsyncEnumerable< Page< object?> > PaginateAsync(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
IAsyncEnumerable< Page< object?> > PaginateAsync(Query query, ISerializer elemSerializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
Task< QuerySuccess< object?> > QueryAsync(Query query, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database.
record Page< T >(IReadOnlyList< T > Data, string? After)
Represents a page in a dataset for pagination.