Abstract
Adds a condition to the query to check if the specified field includes all the given values.
The name of the field to query.
The values to check for inclusion in the field array.
The query builder.
Adds a condition to the query to check if the specified field includes any of the given values.
The name of the field to query.
The values to check for inclusion in the field array.
The query builder.
Adds a condition to the query to check if the specified field does not include any of the given values.
The name of the field to query.
The values to check for non-inclusion in the field array.
The query builder.
Abstract
buildReturns the query object built by this query builder.
A shortcut for where(fieldName, '==', value)
The name of the field to query.
The value to compare against.
The query builder.
A shortcut for where(fieldName, '>', value)
The name of the field to query.
The value to compare against.
The query builder.
A shortcut for where(fieldName, '>=', value)
The name of the field to query.
The value to compare against.
The query builder.
A shortcut for where(fieldName, 'in', value)
The name of the field to query.
An array of values to compare against.
The query builder.
A shortcut for where(fieldName, 'like', pattern).
The name of the field to query.
The pattern to compare against. '%' matches 0 or more characters. '' matches exactly one character. '' can be used to escape '%', ''. or another ''. Note that any '' that is not followed by '%', '_', or '' is invalid.
Optional
caseSensitive: booleanWhether to use case-sensitive comparison. Defaults to true.
The query builder.
Abstract
limitSets a limit to the number of results returned by the query. The maximum limit is 20,000 and the default is 1,000 if none is provided.
The limit to set.
The query builder.
A shortcut for where(fieldName, '<', value)
The name of the field to query.
The value to compare against.
The query builder.
A shortcut for where(fieldName, '<=', value)
The name of the field to query.
The value to compare against.
The query builder.
A shortcut for where(fieldName, '!=', value)
The name of the field to query.
The value to compare against.
The query builder.
A shortcut for where(fieldName, 'not in', value)
The name of the field to query.
An array of values to compare against.
The query builder.
A shortcut for where(fieldName, 'not like', pattern).
The name of the field to query.
The pattern to compare against. '%' matches 0 or more characters. '' matches exactly one character. '' can be used to escape '%', ''. or another ''. Note that any '' that is not followed by '%', '_', or '' is invalid.
Optional
caseSensitive: booleanWhether to use case-sensitive comparison. Defaults to true.
The query builder.
Abstract
sortAdds a sort order to the query. You can add multiple sort orders to the query. The order in which you add them determines the order in which they are applied.
The name of the field to sort by.
Optional
asc: booleanWhether to sort in ascending order. Defaults to true.
The query builder.
Abstract
whereAdds a condition to the query.
The name of the field to query.
The operator to use.
The value to compare against.
The query builder.
Query builder base class.