Search Filters when Fetching Entities using the Aggregate to Avoid Manual Filtering #370
abhirathmahipal
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Search filters when fetching entities using the aggregate to avoid having to write loops (manually filter) or directly using
dao
of the entity.Relevant Links
Let's take a simple example of
Entry
andMembers
. To get the list of active members, I'm forced to write arepo
method.Simple Example
I could do something like
entry.members
to get all the members. This is not expressive enough in my opinion.I suggest something in lines of
We already have methods like
add_
,remove_
which get created dynamically for every reference. Why not create another method calledget_{reference_name}
?Proposed Solution
A More Involved Example Showcasing the Problem
Beta Was this translation helpful? Give feedback.
All reactions