def

func:queryNamed

queryNamed(subject, spec, opts: null)

Evaluate a relationship query and return the named constraints as a dict. The query slot names are the dict names and the matching record dicts are the dict values. Missing matches are silently ignored and ambiguous matches return an indeterminate record.

Example:

// spec
MyAhu: Equip {
  points: {
    dat: DischargeAirTempSensor
    rat: DischargeAirTempSensor
  }
}

// axon
myAhuPoints: read(ahu).queryNamed(spec("mylib::MyAhu.points"))

// result
{
  dat: {dis:"DAT", discharge, air, temp, sensor, ...},
  rat: {dis:"RAT", return, air, temp, sensor, ...}
}

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function