ejsMissingFilter

An missingFilter matches documents where the specified field contains no legitimate value.

Module

 MissingFilter

MissingFilter ( fieldName )
Filters documents where a specific field has no value present.

Parameters
fieldName <String> the field name to check for missing values.

Method Summary

Returns Name Description
String_type()The type of ejs object. For internal use only.
Objectcache(trueFalse)Enable or disable caching of the filter
ObjectcacheKey(key)Sets the cache key.
Objectexistence(trueFalse)Checks if the field doesn't exist.
Objectfield(name)Sets the field to check for missing values.
Objectname(name)Sets the filter name.
ObjectnullValue(trueFalse)Checks if the field has null values.
ObjecttoJSON()Returns the filter object.

Method Detail

 _type

String _type ( )
The type of ejs object. For internal use only.

Returns
the type of object

 cache

Object cache ( trueFalse )
Enable or disable caching of the filter

Parameters
trueFalse <Boolean> True to cache the filter, false otherwise.
Returns
returns this so that calls can be chained.

 cacheKey

Object cacheKey ( key )
Sets the cache key.

Parameters
key <String> the cache key as a string.
Returns
returns this so that calls can be chained.

 existence

Object existence ( trueFalse )
Checks if the field doesn't exist.

Parameters
trueFalse <Boolean> True to check if the field doesn't exist.
Returns
returns this so that calls can be chained.

 field

Object field ( name )
Sets the field to check for missing values.

Parameters
name <String> A name of the field.
Returns
returns this so that calls can be chained.

 name

Object name ( name )
Sets the filter name.

Parameters
name <String> A name for the filter.
Returns
returns this so that calls can be chained.

 nullValue

Object nullValue ( trueFalse )
Checks if the field has null values.

Parameters
trueFalse <Boolean> True to check if the field has nulls.
Returns
returns this so that calls can be chained.

 toJSON

Object toJSON ( )
Returns the filter object.

Returns
filter object

Request

Queries

Filters

Aggregations

Facets

Suggesters

Geo