Table of Contents

Namespace DotNetQuery.Core

Classes

MutationOptions<TArgs, TData>

Configuration options for a single mutation created via CreateMutation<TArgs, TData>(MutationOptions<TArgs, TData>).

MutationState<TData>

An immutable snapshot of a mutation's current state. Use the static factory methods to create instances.

QueryClientFactory

Factory for creating IQueryClient instances without a dependency injection container.

QueryClientOptions

Global configuration options applied to all queries and mutations created by an IQueryClient. Individual QueryOptions<TArgs, TData> and MutationOptions<TArgs, TData> can override most settings.

QueryKey

An immutable, equality-comparable key used to identify and share query cache entries. Create instances via From(params object[]) or use Default as a sentinel for the uninitialized state.

QueryOptions<TArgs, TData>

Configuration options for a single query created via CreateQuery<TArgs, TData>(QueryOptions<TArgs, TData>). Per-query settings override the global defaults set on QueryClientOptions.

QueryState<TData>

An immutable snapshot of a query's current state. Use the static factory methods to create instances.

Interfaces

IMutation<TArgs, TData>

Represents a mutation that executes a side-effecting operation with TArgs and produces TData as a result.

IQuery

Base interface for a query. Provides lifecycle management and key access.

IQueryClient

The central client for creating and managing queries and mutations. Acts as the cache owner — all queries and mutations created through it share the same cache.

IQuery<TArgs, TData>

A query that fetches data using the provided TArgs. Inherits all lifecycle members from IQuery.

IRetryHandler

Executes an async operation with retry logic applied according to the implementation's policy.

Enums

MutationStatus

Represents the lifecycle state of a mutation execution.

QueryExecutionMode

Determines how the IQueryClient is registered in the DI container, matching the Blazor rendering mode in use.

QueryStatus

Represents the lifecycle state of a query fetch operation.