Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (() => {
- 'use strict';
- let collections = Meteor.connection._mongo_livedata_collections;
- let names = Object.keys(collections);
- let result = {};
- for (let name of names) {
- let collection = Meteor.connection._mongo_livedata_collections[name];
- let keys = Object.keys(collection._docs._map);
- result[collection.name] = keys.length;
- }
- return result;
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement