Я использую Promises для извлечения данных из двух коллекций mongodb в методе meteor, как вы видите ниже:
doSomething:function(Id){
var fut = new Future();
const collectionA = Products.rawCollection();
const find = Meteor.wrapAsync(collectionA.find, collectionA);
const products = Promise.await(find({}).toArray());
const collectionB = ProductsB.rawCollection();
const find = Meteor.wrapAsync(collectionB.find, collectionB);
const products_B = Promise.await(find({}).toArray());
console.log("Products", products,"products_B", products_B)
}
возвращаемый результат в консоли, хотя только из первой коллекции для обеих двух переменных products, products_B.Как правильно использовать синтаксис?