Refines a query to match items whose specified property value does not equal the specified value.
The ne()
function refines an EventsQueryBuilder
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"
.
If the value of the propertyName
property is an Array, ne()
includes items
in which none of the elements of the Array match the specified value
.
The property whose value will be compared with value
.
Supported properties:
_id
title
createdBy
status
slug
The value to match against.
Adds an not
condition to the query.
The not()
function adds a not
condition to an EventsQueryBuilder
. A query
with a not
returns all the items that match the query as defined up to
the not
function, but don't match the query passed to the not
function.
If the query only contains a not()
function, it returns all the items
that don't match the query defined by the not
method.
Contains functionality for refining a Wix events query.
Adds an or
condition to the query.
The or()
function adds an inclusive or
condition to an EventsQueryBuilder
. A query
with an or
returns all the items that match the query as defined up to
the or
function, the items that match the query passed to the or
function, and the items that match both.
The or()
function is designed to work with 2 or more queries.
If you use it on its own, it will return all the items in a collection.
Contains functionality for refining a Wix events query.
Sets the number of items to skip before returning query results.
The skip()
function defines the number of results to skip in the query
results before returning new query results.
For example, if you query a collection and 50 items match your query, but
you set skip
to 10, the results returned will skip the first 10 items
that match and return the 11th through 50th items.
By default, skip
is set to 0.
function skip(skip: string): EventsQueryBuilder;
The number of items to skip in the query results before returning the results.
const query = wixEvents.queryEvents().skip(10);