Post
I actually posted about this recently, just not here. genserver.social/notice/Ap4or...
genserver.socialPaweł Świątkowski (@katafrakt@genserver.social)A common folk wisdom in #Elixir (or actually Phoenix) is that you should never call Ecto repo functions directly from the controllers, but they should be encapsulated by a context. I disagree. Th...
In your example, the problem with calling multiple context functions that not all context functions are guaranteed to be composable within a transaction. They have effects like broadcasting over pubsub, or ordering requirements etc.
0 reposts1 like