I want to filter post by using multiple tags value and I’m wondering how to do it.
I want to be able to filter post by #country-countryCode, #language-languageCode and another tag value which is review. Then, I will be able to create page on the path /countryCode/languageCode/review/$slug.
The query operator I see are eq, ne, regex, glob, in, nin. How can I query a tags array who valide if tag1 AND tag2 AND tag3 are present in the tags array?
Right now, I’m only able to filter one tag value at the time (see the query below)
{
allGhostPost(filter: {tags: {elemMatch: {name: {eq: "#country-ca"}}}}) {
edges {
node {
slug
}
}
}
}