feat: aggregations

This commit is contained in:
yim7
2022-09-22 13:24:42 +08:00
parent 70a6e2bd78
commit 8a9c3974fc
4 changed files with 156 additions and 23 deletions

View File

@@ -119,6 +119,7 @@ class ModelQuery(Expr):
'must_not': [e.compile() for e in self.__exclude],
'should': [e.compile() for e in self.__union],
'filter': [e.compile() for e in self.__filter],
'minimum_should_match': 1 if self.__union else 0,
}
}