eq
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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”If the name is not a queryable attribute, or a system attribute is compared against the wrong type.
Example
Section titled “Example”eq("status", str("open")) // status = str('open')eq("flagged", true) // flagged = trueeq("$owner", addr(account)) // $owner = addr(0xd8dA…)