Skip to main content

Filter conditions

eq(path, value)​

query.condition(eq('name', 'declan'))

notEq(path, value)​

query.condition(notEq('name', 'declan'))

gt(path, value)​

query.condition(gt('age', 50))

gte(path, value)​

query.condition(gte('age', 50))

lt(path, value)​

query.condition(lt('age', 50))

lte(path, value)​

query.condition(lte('age', 50))

between(path, value)​

query.condition(between('age', 50, 75))

beginsWith(path, value)​

query.condition(beginsWith('name', 'dec'))

contains(path, value)​

query.condition(contains('name', 'dec'))

contains(path, value)​

query.condition(contains('name', 'dec'))

exists(path)​

Check if the attribute path exists.

query.condition(exists('name'))

notExists(path)​

Check if the attribute path does not exists.

query.condition(notExists('address.addressLine1'))

not(condition)​

Check if provided conditions do not met.

query.condition(not(eq('name', 'declan'))

anyOf(path, values[])​

Check if array attribute contains any of provided values.

query.condition(anyOf('hobbies', ['snowboarding']))

size(path, value)​

Check if attribute is specific size

query.condition(size('hobbies', 5))

type(path, value)​

Check if attribute has a specific type

query.condition(type('hobbies', 'String'))

and()​

Combine multiple conditions with and

query.condition(
eq('name', 'declan'),
and(),
lte('age', 50)
)

or()​

Combine multiple conditions with or

query.condition(
eq('name', 'declan'),
or(),
lte('age', 50)
)

group(...conditions)​

Group multiple conditions

query.condition(
group(eq('name', 'declan'), and(), gte('age', 30))
or(),
lte('age', 50)
)