ne( )


Refines a query to match items whose specified property value does not equal the specified value.

The ne() function refines a CreateRequestsQueryBuilder to only match items where the value of the specified property does not equal the specified value.

It only matches values of the same type. For example, a number value stored as a String type does not match the same number stored as a Number type.

Matching strings with ne() is case sensitive, so "text" is not equal to "Text".

Method Declaration
Copy
function ne(propertyName: string, value: any): CreateRequestsQueryBuilder;
Method Parameters
propertyNamestringRequired

The property whose value will be compared with value. Supported property:

  • status

valueanyRequired

The value to match against.

Returns
JavaScript
const query = createRequests.queryCreateRequests().ne("status", "APPROVED");
Errors

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

Did this help?