This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Feature Request] Allow reverse :empty: / :notempty: relation queries #3538
Labels
enhancement
improvements to existing features
site development 👩💻
features related to website/API development
Not sure if the title makes sense, because this is somewhat complicated, but I'll explain it with an example. Let's say I have two sections:
articles
andauthors
, and anarticle
entry has aauthor
field (relation field). I can easily list all the articles that have at least one author:Or all the articles that have no author:
But if I want to list all the authors that have at least one article, it's more complicated. I can do it with two queries:
But it would be nice to do it with just one:
(not sure at all if that API makes sense, just a suggestion)
If I want to list all the authors with no article, it's even more complicated:
But it could be supported in a similar manner:
Thoughts?
The text was updated successfully, but these errors were encountered: