Skip to content

index.TypeAlias.LeafOperator

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

Type Alias: LeafOperator

type LeafOperator = 
  | "$eq"
  | "$ne"
  | "$in"
  | "$nin"
  | "$gt"
  | "$gte"
  | "$lt"
  | "$lte"
  | "$exists"
  | "$regex"
  | "$all"
  | "$size"
  | "$elemMatch";

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

A mongo-query comparison operator, as CASL conditions use them.

Remarks

A bare value ({ status: 'live' }) is normalized to $eq, so every leaf reaching a LeafAdapter carries an explicit operator.

API Reference

Clone this wiki locally