Refines a query to match items whose specified property value starts with a specified string.
The startsWith()
function refines a GroupsQueryBuilder
to only
match items where the value of the specified property starts with a specified string.
Matching with startsWith()
is case-sensitive, so "TEXT"
does not start with "tex"
.
You can only use startsWith()
with a property whose value is a String.
function startsWith(propertyName: string, value: string): GroupsQueryBuilder;
The property whose value will be compared with value
.
Supported property:
name
The value to match against.
const query = groups.queryGroups().startsWith("name", "T");
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.