Skip to content

index.Interface.LeafCondition

github-actions[bot] edited this page Nov 30, 2026 · 26 revisions

Interface: LeafCondition

Defined in: packages/graphql-casl/src/conditions.ts:59

One comparison, flattened out of a condition object.

Properties

operator

readonly operator: LeafOperator;

Defined in: packages/graphql-casl/src/conditions.ts:66

The comparison to apply. A bare value is reported as $eq.


path

readonly path: readonly string[];

Defined in: packages/graphql-casl/src/conditions.ts:64

The field being compared, already split on . — 'author.id' arrives as ['author', 'id']. A single-element path is the common case.


value

readonly value: unknown;

Defined in: packages/graphql-casl/src/conditions.ts:72

The right-hand side, exactly as written on the rule. For $elemMatch this is the nested condition object, un-walked — element matching has no dialect-independent shape.

API Reference

Clone this wiki locally