utilities/handler-helper.js
function _addMany(
  ownerModel,
  ownerId,
  childModel,
  associationName,
  payload,
  Log
) {
  let request = { params: { ownerId: ownerId }, payload: payload }
  return _addManyHandler(
    ownerModel,
    ownerId,
    childModel,
    associationName,
    request,
    Log
  )
}
function _addMany(
  ownerModel,
  ownerId,
  childModel,
  associationName,
  payload,
  Log
) {
  let request = { params: { ownerId: ownerId }, payload: payload }
  return _addManyHandler(
    ownerModel,
    ownerId,
    childModel,
    associationName,
    request,
    Log
  )
}
function _addMany ( ownerModel , ownerId , childModel , associationName , payload , Log ) { let request = { params : { ownerId : ownerId } , payload : payload } return _addManyHandler ( ownerModel , ownerId , childModel , associationName , request , Log ) }
AddMany function exposed as a mongoose wrapper.
@param ownerModel: The model that is being added to.
@param ownerId: The id of the owner document.
@param childModel: The model that is being added.
@param associationName: The name of the association from the ownerModel's perspective.
@param payload: Either a list of id's or a list of id's along with extra linking-model fields.
@param Log: A logging object
@returns {object} A promise returning true if the add succeeds.
@private
AddMany function exposed as a mongoose wrapper .