You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I know, there is no exists filter, and I'm not sure the above doesn't work. Essentially, if an ExistsFilter could take in a sublist of StatementFilters that would be nice.
@riyavsinha I think there is some value to have some filters for this. I'll try to get this added in an upcoming release.
Regarding your first question, you should be able to do something close to what your want The args of the repository will accept a StatementFilter or a ColumnElement[bool] (a where clause in SQLAlchemy)
Here's a basic example of mixing Statement Filters and ColumnExpressions into a single set of filters.
You can also mix and match the kwargs and args. For the repository, all kwargs keywords are automatically converted to ColumnElement[bool] and applied to the statement:
Summary
It would be great to be able to specify something like:
As far as I know, there is no exists filter, and I'm not sure the above doesn't work. Essentially, if an
ExistsFilter
could take in a sublist ofStatementFilters
that would be nice.Basic Example
Drawbacks and Impact
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: