Skip to content

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.

string

The prefix, as a bare string or a str value.

string | StrValue

StartsWithNode

If the name is not a queryable attribute.

If given a value that is not a str, or a system attribute (none of which is a str).

startsWith("desc", "ab") // desc STARTSWITH str('ab')