3 ms·
To return your challenge to Django, do you have an easy way to compose queries as neatly? ``` issues_query = Issue.objects.filter(location__contained=b
by aitchnyu 8y ago
To return your challenge to Django, do you have an easy way to compose queries as neatly?
```
issues_query = Issue.objects.filter(location__contained=bounding_box)
if all_of:
for tag in all_of:
issues_query = issues_query.filter(issuetag__tag=tag)
if any_of:
issues_query = issues_query.filter(issuetag__tag__in=any_of)
```
- RedCrowbar 8y agoWe are working on a similar query builder syntax for edgedb-python.
- aitchnyu 8y agoHow will the api look like?
- RedCrowbar 8y agoSimilar in spirit to Django and SQLAlchemy Core SQL expressions.
- deleted 8y ago[deleted]