updateViewSelect = (viewSelect) => {
  if (viewSelect.path.length === 1) {
    viewSelect.field_name = viewSelect.path[0].inboundKey;
    viewSelect.table_name = viewSelect.path[0].table;
  } else if (viewSelect.path.length === 2) {
    viewSelect.field_name = viewSelect.path[1].inboundKey;
    viewSelect.table_name = viewSelect.path[1].table;
    viewSelect.throughTable = viewSelect.path[0].inboundKey;
    viewSelect.through = viewSelect.path[0].table;
  }
}
update viewSelect so that it looks like a normal ChildList