Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var getCount = async (collectionName, query) => {
- try {
- var controllerHandle = await (getCollection(collectionName));
- var result = await (count(query));
- return result;
- } catch (e) {
- return e;
- }
- };
Add Comment
Please, Sign In to add comment