ne( )


Developer Preview

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

Refines a query to match items where the specified property doesn't equal the specified value.

The ne() function refines a LoyaltyAccountsQueryBuilder to match only items where the value of the specified propertyName doesn't equal the specified value. ne() matches only values of the same type. For example, 0 stored as a number doesn't match '0' stored as a string. Matching strings with ne() is case-sensitive, so 'text' isn't equal to 'Text'.

Method Declaration
Copy
function ne(propertyName: string, value: any): LoyaltyAccountsQueryBuilder;
Method Parameters
propertyNamestring

Property whose value is compared with value.


valueany

Value to compare against.

Returns
JavaScript
const query = accounts .queryLoyaltyAccounts() .ne("_id", "bb19b637-74ce-55d3-ae32-430b588051da");
Errors

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

Did this help?