lib/resource-linker.js
function mergeAncestorData(target, pathArr, type, source) {
    mergeLinked(source, target, _.rest(pathArr), type);
    mergeLinks(source, target , pathArr, type);
  }
function mergeAncestorData(target, pathArr, type, source) {
    mergeLinked(source, target, _.rest(pathArr), type);
    mergeLinks(source, target , pathArr, type);
  }
function mergeAncestorData ( target , pathArr , type , source ) { mergeLinked ( source , target , _ . rest ( pathArr ) , type ) ; mergeLinks ( source , target , pathArr , type ) ; }
Combines the original target resource with the external resource data.

@param {Object} The target resource.
@param {Object} The include properties.
@param {Object} The lookup resource type.
@param {Object} The source from the external lookup.
@api private
Combines the original target resource with the external resource data .