src-old/directives/by.js
function defaultResolveUser(source, args, context, info) {
  return (
    get(args, ['userID']) ||
    get(context, ['userID']) ||
    get(info, ['rootValue', 'userID'])
  );
}
function defaultResolveUser(source, args, context, info) {
  return (
    get(args, ['userID']) ||
    get(context, ['userID']) ||
    get(info, ['rootValue', 'userID'])
  );
}
function defaultResolveUser ( source , args , context , info ) { return ( get ( args , [ 'userID' ] ) || get ( context , [ 'userID' ] ) || get ( info , [ 'rootValue' , 'userID' ] ) ) ; }
Default user id resolver, checks args, then context, then rootValue
for a userID value
@param {*} source
@param {*} args
@param {*} context
@param {*} info
Default user id resolver checks args then context then rootValue for a userID value