function splitId(id, rootValue) {
  if (typeof id === 'string') {
    if (isArrayAction(rootValue, id)) {
      const [key, index, ...path] = id.split('/');
      const item = rootValue[key][index];
      return {
        key,
        id: item && item.id,
        index,
        paths: path,
        path: path.join('/')
      };
    } else {
      const [key, ...path] = id.split('/');
      return {
        key,
        path: path.join('/'),
        paths: path,
        id: '',
        index: ''
      };
    }
  }

  return splitId(id.firstId, rootValue);
}
Swap root array is not allowed,