Replies: 1 comment
-
|
I think I was even mentioning an operator like this when the feature was originally proposed, makes a lot of sense for sure, will try to add this to v7 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
Thanks for all the work on MikroORM, it’s been a great experience to use.
I’d love to have a
$sizeoperator for collection relations (OneToMany,ManyToMany, etc.) so we can filter entities based on the number of related items directly in the ORM filter syntax. For example:This would make common patterns like “empty/non-empty relation” or “at least N related records” easy to express and very readable, in line with the existing operator style (
$gt,$gte,$lte, etc.).I think this would be a small but very impactful addition to the query API, especially for projects with a lot of relational filtering.
Thanks for considering it!
Beta Was this translation helpful? Give feedback.
All reactions