GraphQL: Filter for tags that have at least one entry associated #12134
-
Hi there, I’m just wondering how to filter for tags that have at least one entry associated. Our use case:
In pseudo code: I haven't yet figured out how to accomplish this:
Any thoughts, ideas? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can accomplish that using the query {
tags(relatedToEntries:{}) {
title
}
} (You can filter down which entries the tags must be related to by passing nested arguments inside that |
Beta Was this translation helpful? Give feedback.
You can accomplish that using the
relatedToEntries
argument:(You can filter down which entries the tags must be related to by passing nested arguments inside that
{}
, but as it stands that will return all tags that are related to any entries.)