aggregate = async (funcLogger, collectionName, query) => {
  const logger = funcLogger.child({ helper: 'mongo', funcName: 'aggregate' });

  const collection = database.collection(collectionName);

  logger.debug({ query }, 'Finding document from MongoDB');

  const result = await collection.aggregate(query).toArray();

  logger.debug({ result }, 'Found documents from MongoDB');

  return result;
}
Agreegate result with pagination

@param {*} funcLogger
@param {*} collectionName
@param {*} query
@returns