startsWith
startsWith(
name,prefix):StartsWithNode
Defined in: src/query/expression.ts:285
Attribute is a str beginning with this prefix.
The match is on raw UTF-8 bytes with no normalization — it is the index encoding, so
startsWith("name", "é") matches only the same byte sequence, not another normal form of it.
Parameters
Section titled “Parameters”string
prefix
Section titled “prefix”The prefix, as a bare string or a str value.
string | StrValue
Returns
Section titled “Returns”Throws
Section titled “Throws”If the name is not a queryable attribute.
Throws
Section titled “Throws”If given a value that is not a str, or a system attribute
(none of which is a str).
Example
Section titled “Example”startsWith("desc", "ab") // desc STARTSWITH str('ab')