Skip to content
On this page

Directus Cloud

Everything you need to start building. Provisioned in 90 seconds. Starting at $15/month.

Get Started

This is an auto-generated document to support extension builders understand the internal packages they can utilize. To find our written guides, tutorials, and API/SDK reference, check out our main docs .

Directus / @directus/sdk / types / FilterOperators

Type alias: FilterOperators<FieldType, T> ​

FilterOperators<FieldType, T>: MapFilterOperators<Object>

All regular filter operators

TODO would love to filter this based on field type but thats not accurate enough in the schema atm

Type declaration ​

_between ​

_between: IsDateTime<FieldType, [T, T], IsNumber<T, [T, T], never>>

_contains ​

_contains: IsDateTime<FieldType, never, IsString<T, string, never>>

_empty ​

_empty: boolean

_ends_with ​

_ends_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_eq ​

_eq: T

_gt ​

_gt: IsDateTime<FieldType, string, IsNumber<T, number, never>>

_gte ​

_gte: IsDateTime<FieldType, string, IsNumber<T, number, never>>

_icontains ​

_icontains: IsDateTime<FieldType, never, IsString<T, string, never>>

_iends_with ​

_iends_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_in ​

_in: T[]

_intersects ​

_intersects: T

_intersects_bbox ​

_intersects_bbox: T

_istarts_with ​

_istarts_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_lt ​

_lt: IsDateTime<FieldType, string, IsNumber<T, number, never>>

_lte ​

_lte: IsDateTime<FieldType, string, IsNumber<T, number, never>>

_nbetween ​

_nbetween: IsDateTime<FieldType, [T, T], IsNumber<T, [T, T], never>>

_ncontains ​

_ncontains: IsDateTime<FieldType, never, IsString<T, string, never>>

_nempty ​

_nempty: boolean

_nends_with ​

_nends_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_neq ​

_neq: T

_niends_with ​

_niends_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_nin ​

_nin: T[]

_nintersects ​

_nintersects: T

_nintersects_bbox ​

_nintersects_bbox: T

_nistarts_with ​

_nistarts_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_nnull ​

_nnull: boolean

_nstarts_with ​

_nstarts_with: IsDateTime<FieldType, never, IsString<T, string, never>>

_null ​

_null: boolean

_starts_with ​

_starts_with: IsDateTime<FieldType, never, IsString<T, string, never>>

Type parameters ​

• FieldType

• T = FieldType extends keyof FieldOutputMap ? FieldOutputMap[FieldType] : FieldType

Source ​

types/filters.ts:47