function resolveResult(mergedQueryResult) {
  const data = mergedQueryResult.data

  return Object.keys(data).reduce((acc, prefixedKey) => {
    const { index, originalKey } = Prefix.parseKey(prefixedKey)
    if (!acc[index]) acc[index] = { data: {} }
    acc[index].data[originalKey] = data[prefixedKey]
    return acc
  }, [])
}
Split and transform result of the query produced by the `merge` function