We have to translate [Query.preload](https://hexdocs.pm/ecto/Ecto.Query.html#preload/3) and [Repo.preload](https://hexdocs.pm/ecto/Ecto.Repo.html#c:preload/3) into something like [AQL subqueries](https://docs.arangodb.com/3.3/AQL/Examples/CombiningQueries.html) ``` from p in Post, join: c in assoc(p, :comments), preload: [comments: c] ``` should translate into ``` FOR p IN posts FOR c IN comments FILTER p._key == c.post_id RETURN { post : p, comments : c } ```
We have to translate Query.preload and Repo.preload into something like
AQL subqueries
should translate into