pikdum
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
so I think right now my best bet might be to just do things through code, like:
* read action for getting last 10 posts that are unpublished
* Enum.count or similar
26 replies
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
https://github.com/ash-project/ash/issues/2012 - made this
26 replies
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
i'll make a proposal for limits + sort on a has_many relationship
26 replies
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
getting this even if it's an inline calculation type aggregate rather than an aggregate count type
26 replies
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
26 replies
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
i like the idea of doing the limit on a
has_many
relationship, that seems pretty clean26 replies
AEAsh Elixir
•Created by pikdum on 5/2/2025 in #support
Is there a way to do a 'limit' on a relationship?
* Cannot set limit on aggregate queryhm
26 replies