How can i merge 2 MeteorObservables? I tried with the following code but it gives me only the first 10. I also tried it with the concat function, That gave me the last 10.
this.products_first_part = Products.find({}, { limit: 10, skip: 0 });
this.products_last_part = Products.find({}, { limit: 10, skip: 10 });
this.products = Observable.merge(this.products_first_part, this.products_last_part);
this.products.subscribe(
function (x) {
console.log('Next: ' + x);
},
function (err) {
console.log('Error: ' + err);
},
function () {
console.log('Completed');
});
Any ideas?
Thank you