lib/resource-linker.js
function fetchAncestor(type, ids, includePath, req) {
    return router.actions["get" + util.toCapitalisedCamelCase(type)](ids, {include: includePath, parentRequest: req});
  }
function fetchAncestor(type, ids, includePath, req) {
    return router.actions["get" + util.toCapitalisedCamelCase(type)](ids, {include: includePath, parentRequest: req});
  }
function fetchAncestor ( type , ids , includePath , req ) { return router . actions [ "get" + util . toCapitalisedCamelCase ( type ) ] ( ids , { include : includePath , parentRequest : req } ) ; }
Returns the resource data for the external resource.

@param {String} The type of resource to lookup.
@param {Array} The link id(s) of the resource to be looked up.
@param {Object} The http request object.
@param {Array} The include url params.
@api private
Returns the resource data for the external resource .