sanity-plugin-tags
sanity-plugin-tags copied to clipboard
Filter document by tags using GraphQL
I can't see this field in the Filter options when using GraphQL. Is there something I am missing or is the field just not supported in GraphQL?
@james2doyle This works for me:
*[_type == "article" && $keyword in tags[].label] {
...,
}
// Params
{
"keyword": "Article Tag"
}
That's groq syntax, not graphql
On Sun, Oct 8, 2023, 9:48 AM M @.***> wrote:
@james2doyle https://github.com/james2doyle This works for me:
*[_type == "article" && $keyword in tags[].label] { ..., }
// Params { "keyword": "Article Tag" }
— Reply to this email directly, view it on GitHub https://github.com/pcbowers/sanity-plugin-tags/issues/22#issuecomment-1752103306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK37GE7QBBZFWWNFSMW563X6LKPPAVCNFSM6AAAAAAYXJO44WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJSGEYDGMZQGY . You are receiving this because you were mentioned.Message ID: @.***>
Yup, my bad.