utilities/handler-helper.js
function _getAll(ownerModel, ownerId, childModel, associationName, query, Log) {
  let request = { params: { ownerId: ownerId }, query: query }
  return _getAllHandler(
    ownerModel,
    ownerId,
    childModel,
    associationName,
    request,
    Log
  )
}
function _getAll(ownerModel, ownerId, childModel, associationName, query, Log) {
  let request = { params: { ownerId: ownerId }, query: query }
  return _getAllHandler(
    ownerModel,
    ownerId,
    childModel,
    associationName,
    request,
    Log
  )
}
function _getAll ( ownerModel , ownerId , childModel , associationName , query , Log ) { let request = { params : { ownerId : ownerId } , query : query } return _getAllHandler ( ownerModel , ownerId , childModel , associationName , request , Log ) }
GetAll 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 query: rest-hapi query parameters to be converted to a mongoose query.
@param Log: A logging object
@returns {object} A promise for the resulting model documents or the count of the query results.
@private
GetAll function exposed as a mongoose wrapper .