Tore
AEAsh Elixir
•Created by Tore on 8/25/2023 in #support
Group by and count query
Thanks for explaining, that makes a lot of sense 😊
Yes, I am trying to make some different metrics, so I also found it a bit strange to have to attach it to the resource. So the third option of creating a separate
Stats
resource would make prefect sense. For now, I am just using Phoenix LiveView, so seems like I could even do with just a normal module.
Also, I just figured I could use the resource as a schema and use it directly in an Ecto query. Just like my initial example with Ecto.5 replies