Just wondering what would happen in this situation:
Client uses this method
Meteor.methods({
insert() {
Coll_A.insert({field1: 'hello'});
Coll_B.insert({field2: 'world'});
}
});
The client is subscribed to both Coll_A
and Coll_B
in a single subscription that returns an array of cursors. Does sub.ready()
wait until both new docs are in the client’s Minimongo? Or does sub.ready()
happen twice (i.e. once for the new doc from Coll_A and once for B)?