Repository navigation
index.Interface.LeafAdapter
Defined in: packages/graphql-casl/src/conditions.ts:117
A dialect that controls the leaves as well as the skeleton.
Each comparison in a rule's conditions is delivered as one
LeafCondition; the walker handles dotted paths, multi-operator
objects, and the $and/$or/$nor groups that rehydrated database rules
can contain.
-
AdapterCore<TFilter>
TFilter
optional rule?: undefined;Defined in: packages/graphql-casl/src/conditions.ts:122
and(filters): TFilter;Defined in: packages/graphql-casl/src/conditions.ts:78
All of these must hold.
TFilter[]
TFilter
everything(): TFilter;Defined in: packages/graphql-casl/src/conditions.ts:82
The filter that matches every row — no restriction at all.
TFilter
leaf(condition): TFilter;Defined in: packages/graphql-casl/src/conditions.ts:119
One comparison as a filter.
TFilter
not(filter): TFilter;Defined in: packages/graphql-casl/src/conditions.ts:121
Negation — used for cannot rules and for $nor.
TFilter
TFilter
optional nothing(): TFilter;Defined in: packages/graphql-casl/src/conditions.ts:87
The filter that matches no row. Optional, and only used by argument
scoping's onDenyAll: 'nothing'.
TFilter
or(filters): TFilter;Defined in: packages/graphql-casl/src/conditions.ts:80
Any of these may hold.
TFilter[]
TFilter