Replies: 1 comment
-
Related: #1640 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions