@cbnsndwch/zero-sources

RegisteredQueryHandler interface

Home > @cbnsndwch/nest-zero-synced-queries > RegisteredQueryHandler

RegisteredQueryHandler interface

Registered query handler with metadata and execution context.

Signature:

export interface RegisteredQueryHandler

Properties

Property

Modifiers

Type

Description

execute

(request: any, ...args: any[]) => Promise<AST>

Execute the handler with proper context. Executes guards, resolves parameters, then calls the handler.

guards

Type<CanActivate>[]

Guards to execute before the handler (class-level and method-level).

handler

QueryHandler

The handler function to execute (bound to provider instance).

metadata

SyncedQueryMetadata

Metadata about the query (name, schema, auth requirements).

methodName

string

The name of the method on the provider.

paramMetadata

SyncedQueryParamMetadata[]

Parameter metadata for dependency injection.

provider

any

The provider instance that owns this handler.

How was this page?