code: function generateAssociationAddOneHandler(
    ownerModel,
    association,
    options,
    logger
  ) {
    const Log = logger.bind()
    let associationName = association.include.as
    let childModel = association.include.model
    let addMethodName =
      'addOne' + associationName[0].toUpperCase() + associationName.slice(1, -1)
  
    return async function(request, h) {
      try {
        Log.log(
          addMethodName + ' + params(%s), query(%s), payload(%s)',
          JSON.stringify(request.params),
          JSON.stringify(request.query),
          JSON.stringify(request.payload)
        )
  
        await handlerHelper.addOneHandler(
          ownerModel,
          request.params.ownerId,
          childModel,
          request.params.childId,
          associationName,
          request,
          Log
        )
        return h.response().code(204)
      } catch (err) {
        handleError(err, Log)
      }
    }
  }
docs: Handles incoming PUT requests to /OWNER_RESOURCE/{ownerId}/CHILD_RESOURCE/{childId}
  @param ownerModel: A mongoose model.
  @param association: An object containing the association data/child mongoose model.
  @param options: Options object.
  @param logger: A logging object.
  @returns {Function} A handler function