src/relay/resolver.js
function fromCursor(cursor) {
  cursor = unbase64(cursor);
  cursor = cursor.substring(cursorPrefix.length, cursor.length);
  const [id, index] = cursor.split(cursorSeparator);

  return {
    id,
    index
  };
}
function fromCursor(cursor) {
  cursor = unbase64(cursor);
  cursor = cursor.substring(cursorPrefix.length, cursor.length);
  const [id, index] = cursor.split(cursorSeparator);

  return {
    id,
    index
  };
}
function fromCursor ( cursor ) { cursor = unbase64 ( cursor ) ; cursor = cursor . substring ( cursorPrefix . length , cursor . length ) ; const [ id , index ] = cursor . split ( cursorSeparator ) ; return { id , index } ; }
Decode a cursor into its component parts

@param cursor
@returns {{id, index}}
Decode a cursor into its component parts