- Index
- »
- xeto
- »
- func:query
def
func:query
query(subject, spec, checked: true)
Evaluate a relationship query and return record dict. If no matches found throw UnknownRecErr or return null based on checked flag. If there are multiple matches it is indeterminate which one is returned. Subject must be a record id or dict in the database. Spec must be a Spec typed as a sys::Query
. Also see queryAll()
.
Example:
read(point).query(spec("ph::Point.equips"))