-
Hello there ! Again, thanks for this library, this is so useful to me 🙏 . I have a question, imagine you have these models class Author(ormar.Model):
class Meta(BaseMeta):
tablename = "authors"
id: int = ormar.Integer(primary_key=True)
name: str = ormar.String(max_length=100)
class Book(ormar.Model):
class Meta(BaseMeta):
tablename = "books"
id: int = ormar.Integer(primary_key=True)
author: Optional[Author] = ormar.ForeignKey(Author)
title: str = ormar.String(max_length=100)
year: int = ormar.Integer(nullable=True) And you would like to be able to find only the authors with at least 3 Books. I tried filtering like this : Thank you very much for your time ! |
Beta Was this translation helpful? Give feedback.
Answered by
collerek
Apr 6, 2022
Replies: 1 comment
-
Right now sitting on aggregates is not possible, but might be an enhancement. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sorasful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now sitting on aggregates is not possible, but might be an enhancement.