Skip to content

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

eq(name, value): ComparisonNode

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

Attribute equals value — set with this exact type, and holding this value.

Bare booleans, numbers, bigints and strings take the same default types they take when written (number is an i32, bigint a u256, string a str); anything else names its type.

string

ValueInput

ComparisonNode

If the name is not a queryable attribute, or a system attribute is compared against the wrong type.

eq("status", str("open")) // status = str('open')
eq("flagged", true) // flagged = true
eq("$owner", addr(account)) // $owner = addr(0xd8dA…)