lt( )


Refines a query to match items whose specified property value is less than the specified value.

The lt() function refines a SessionQueryBuilder to only match items where the value of the specified property is less than the specified value.

Method Declaration
Copy
function lt(propertyName: string, value: Date): SessionQueryBuilder;
Method Parameters
propertyNamestringRequired

The property whose value will be compared with value.

Supported properties:

  • end.timestamp

valueDateRequired

The value to match against.

Returns
JavaScript
let query = sessions .querySessions() .lt("start.timestamp", "2021-04-27T10:00:00.000Z");
Errors

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

Did this help?