Class Filter
Filter
Class Declared in packages/core/echo/echo-db/dist/types/src/query/filter.d.ts:48
Constructors
constructor(params, [options])
Returns: Filter<T>
Arguments:
params
: FilterParams<T>
options
: QueryOptions
Properties
and
Type: Filter<any>[]
not
Type: boolean
objectIds
Type: string[]
options
Type: QueryOptions
or
Type: Filter<any>[]
predicate
Type: OperatorFilter<any>
properties
Type: Record<string, any>
text
Type: string
type
Type: Reference
spaceIds
Type: undefined | SpaceId[]
spaceKeys
Type: undefined | PublicKey[]
Methods
isObjectIdFilter()
Returns: boolean
Arguments: none
toBufProto()
Returns: Filter
Arguments: none
toProto()
Returns: Filter
Arguments: none
all()
Returns: Filter<any>
Arguments: none
and(filters)
Returns: Filter<T>
Arguments:
filters
: FilterSource<T>[]
from([source], [options])
Returns: Filter<T>
Arguments:
source
: FilterSource<T>
options
: QueryOptions
fromFilterJson(source, [options])
Returns: Filter<T>
Arguments:
source
: PropertyFilter
options
: QueryOptions
fromProto(proto)
Returns: Filter<any>
Arguments:
proto
: Filter
not(source)
Returns: Filter<T>
Arguments:
source
: Filter<T>
or(filters)
Returns: Filter<T>
Arguments:
filters
: FilterSource<T>[]
schema(schema, [filter])
Returns: Filter<Type<S>>
Arguments:
schema
: S
filter
: Record<string, any> | OperatorFilter<Type<S>>
typename(typename, [filter])
Returns: Filter<any>
Arguments:
typename
: string
filter
: Record<string, any> | OperatorFilter<any>