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, Deserializer.Generate<T>(MappingCtx), queryOptions, cancel);
370 CancellationToken cancel =
default) =>
371 QueryAsync<object?>(query, Deserializer.Dynamic, queryOptions, cancel);
377 CancellationToken cancel =
default) =>
378 QueryAsyncInternal(query, deserializer, MappingCtx, queryOptions, cancel);
384 CancellationToken cancel =
default) =>
390 CancellationToken cancel =
default)
392 PaginateAsync(query, Deserializer.Generate<T>(MappingCtx), queryOptions, cancel);
397 CancellationToken cancel =
default)
399 PaginateAsync(page, Deserializer.Generate<T>(MappingCtx), queryOptions, cancel);
404 CancellationToken cancel =
default) =>
405 PaginateAsync(query, Deserializer.Dynamic, queryOptions, cancel);
410 CancellationToken cancel =
default) =>
411 PaginateAsync(page, Deserializer.Dynamic, queryOptions, cancel);
417 CancellationToken cancel =
default)
419 var deserializer =
new PageDeserializer<T>(elemDeserializer);
420 return PaginateAsyncInternal(query, deserializer, queryOptions, cancel);
427 CancellationToken cancel =
default)
429 var deserializer =
new PageDeserializer<T>(elemDeserializer);
430 return PaginateAsyncInternal(page, deserializer, queryOptions, cancel);
437 CancellationToken cancel =
default)
440 var deserializer =
new PageDeserializer<object?>(elemObjDeser);
441 return PaginateAsyncInternal(query, deserializer, queryOptions, cancel);
448 CancellationToken cancel =
default)
451 var deserializer =
new PageDeserializer<object?>(elemObjDeser);
452 return PaginateAsyncInternal(page, deserializer, queryOptions, cancel);
458 internal async IAsyncEnumerable<Page<T>> PaginateAsyncInternal<T>(
460 PageDeserializer<T> deserializer,
462 [EnumeratorCancellation] CancellationToken cancel =
default)
464 var p = await QueryAsyncInternal(query,
470 await
foreach (var page
in PaginateAsyncInternal(p.Data, deserializer, queryOptions, cancel))
476 private async IAsyncEnumerable<Page<T>> PaginateAsyncInternal<T>(
478 PageDeserializer<T> deserializer,
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(Page< object?> page, IDeserializer elemDeserializer, 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, IDeserializer elemDeserializer, 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< object?> > QueryAsync(Query query, IDeserializer deserializer, 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(Page< object?> page, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
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(Query query, IDeserializer elemDeserializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously iterates over pages of a Fauna query result, automatically fetching subsequent pages u...
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, IDeserializer elemDeserializer, 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...
Task< QuerySuccess< object?> > QueryAsync(Query query, IDeserializer deserializer, QueryOptions? queryOptions=null, CancellationToken cancel=default)
Asynchronously executes a specified FQL query against the Fauna database and returns the typed result...
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.