Skip to content

Braga has been retired. The next public testnet is coming in September 2026. Read the announcement →

startsWith(name, prefix): StartsWithNode

Defined in: src/query/expression.ts:279

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 given a value that is not a str.

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