Unfortunately for phoenix, when I started learning it I needed to rely on source code to understand some stuff. Trying to walk around the macro stuff was not a cool experience.
Also I did have some macro related errors most related to ecto and its syntax. See this article to understand the problem
https://www.spapas.net/2019/07/25/declarative-ecto-query-fil...
Ecto has its own, undocumented syntax. If people from the elixir irc (including the always helpful Jose Valim) wouldn't help me I'd be never be able to guess that thingie...