Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Todo: grab shop from `admin.shops` subscription.
const shopId = shops[0]._id; // The `_id` field on a Shop object contains your shopId.
/*
* Subscribe to a Meteor Collection
*/
ddpclient.subscribe(
'admin.orders', // Meteor subscription name
[shopId], // Any parameters to pass to the Meteor subscription.
function () { // Callback when the subscription is complete
console.log('Subscription complete:');
console.log(ddpclient.collections);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.