src/relay/resolver.js
function resolveEdge(item, index, queriedCursor, args = {}, source) {
  if (queriedCursor) {
    index = parseInt(queriedCursor.index, 10) + index;
    if (index === 0) {
      index = 1;
    } else {
      index++;
    }
  }
  return {
    cursor: toCursor(item, index),
    node: item,
    source
  };
}
function resolveEdge(item, index, queriedCursor, args = {}, source) {
  if (queriedCursor) {
    index = parseInt(queriedCursor.index, 10) + index;
    if (index === 0) {
      index = 1;
    } else {
      index++;
    }
  }
  return {
    cursor: toCursor(item, index),
    node: item,
    source
  };
}
function resolveEdge ( item , index , queriedCursor , args = { } , source ) { if ( queriedCursor ) { index = parseInt ( queriedCursor . index , 10 ) + index ; if ( index === 0 ) { index = 1 ; } else { index ++ ; } } return { cursor : toCursor ( item , index ) , node : item , source } ; }
Resolve an edge within it's
cursor, node and source

@param item
@param index
@param queriedCursor
@param args
@param source
@returns {{cursor: *, node: *, source: *}}
Resolve an edge within it s cursor node and source