def unpack_and_split_nodes(data, path):
  """Unpack a list of results

  Args:
    data: A dictionary containing the results
    path: A list of fields indicating the fields to select.
      final one should be a list of nodes

  Returns:
    issues: A list of dicts; each dict is the data for some of
    the results
  """

  children = [data]

  for i, f in enumerate(path):
    last_child = children[-1]
    if not f in last_child:
      # If there are no edges then the field will not exist
      return []
    children.append(last_child.get(f))


  child = children[-1]

  items = []
  for i in child:
    items.append(i["node"])

  return items