Refines a query to match items whose specified property value equals the specified value.
The eq()
function refines a ResourceCatalogQueryBuilder
to only
match items where the value of the specified property equals 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 eq()
is case sensitive, so "text"
is not equal to "Text"
.
function eq(propertyName: string, value: string): ResourceCatalogQueryBuilder;
The property whose value will be compared with value
.
Supported properties:
_id
slugs.name
The value to match against.
let query = resources
.queryResourceCatalog()
.eq("_id", "3f9215e0-7e96-417f-9c16-628e71c77311");
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.