Querying Aggregation Objects by Root Object ID
Recordset
import * as db from 'db';
let b = db.bo('MyBOTest');
let id = '00da000000f2scP5Bw36';
let option = {
options: {
fields: ["name", "age", "grade"],
}
};
let records = b.query(id, option);
Querying Aggregation Objects Based on Root Object Conditions
Recordset
import * as db from 'db';
let b = db.bo('MyBOTest');
let cond = {
conjunction: db.Conjunction.AND,
conditions: [
{
field: "name",
operator: db.Operator.eq,
value: "Tom",
}
]
};
let option = {
options: {
fields: ["name", "age", "grade"],
}
};
let records = b.queryByCondition(cond, option);
Querying Aggregation Objects by Root Object ID List
Recordset
import * as db from 'db';
let b = db.bo('MyBOTest');
let ids = ['00da000000f2scP5Bw36','00da000000f2scP5Bw37','00da000000f2scP5Bw38'];
let option = {
options: {
fields: ["name", "age", "grade"],
}
};
let records = b.queryByIdList(ids, opt);
Aggregation Object Interface