isNotEmpty( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Filters pipeline data to match items whose specified field has any value.

The isNotEmpty() method refines the aggregate pipeline filter to only match items where the value of the specified field is not null or undefined.

If the field contains any value at all for a given item, including the empty string or an invalid value, that item will match the filter.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field to check for a value.

Returns
Return Type:FilterStage
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?