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

  const collection = database.collection(collectionName);

  logger.debug(
    { collectionName, filter, document },
    'Upserting document to MongoDB'
  );
  const result = await collection.updateOne(
    filter,
    { $set: document },
    {
      upsert: true,
      // https://docs.mongodb.com/v3.2/reference/write-concern/
      writeConcern: {
        w: 0,
        j: false
      }
    }
  );
  logger.debug({ result }, 'Upserted document to MongoDB');

  return result;
}
Upsert one row

@param {*} funcLogger
@param {*} collectionName
@param {*} filter
@param {*} document

@returns