Найден!
let cols = $w("#table1").columns;
cols = [];
cols.push({
"id": "type",
"dataPath": "productType.title",
"label": "ProductType",
"width": 70,
"visible": true,
"type": "string"
});
cols.push({
"id": "title",
"dataPath": "title",
"label": "product",
"width": 70,
"visible": true,
"type": "string"
});
$w('#table1').columns= cols;
wixData.query("Products").contains("title","חלב").include("productType").find().then((res)=>{
var prods= res.items;
console.log(prods[2]);
$w('#table1').rows=prods;
});
все, что вам нужно сделать, это использовать содержать, и он сразу же подключит таблицу refrnced.
позже вы сможете получить к нему доступ, позвонив по имени столбца, а затемточка и свойство IE:
productType.title
и все!