lib/resource-linker.js
function mergeLinks(source, target, pathArr, ancestorType) {
    var refType = ancestorType + ((pathArr.length > 1) ? "." + _.rest(pathArr).join(".") : "");

    var link = source.links && source.links[refType];

    if (link) target.links[rootName(target) + "." + pathArr.join(".")] = link;
  }
function mergeLinks(source, target, pathArr, ancestorType) {
    var refType = ancestorType + ((pathArr.length > 1) ? "." + _.rest(pathArr).join(".") : "");

    var link = source.links && source.links[refType];

    if (link) target.links[rootName(target) + "." + pathArr.join(".")] = link;
  }
function mergeLinks ( source , target , pathArr , ancestorType ) { var refType = ancestorType + ( ( pathArr . length > 1 ) ? "." + _ . rest ( pathArr ) . join ( "." ) : "" ) ; var link = source . links && source . links [ refType ] ; if ( link ) target . links [ rootName ( target ) + "." + pathArr . join ( "." ) ] = link ; }
Append meta data of included type to the links section of root resource.

@param {Object} The source from the external lookup.
@param {Object} The target resource.
@param {Object} The include properties.
@param {Object} The lookup resource type.
@api private
Append meta data of included type to the links section of root resource .