Get a peek at our latest innovations at Sanity Product Day on Dec 8th →

Filter By Tags

By Moroi

Filter posts by tags

filter by tag

*[_type == "post" &&  tags[].label match $keyword ] {
  ...,
}

// Params
{
"keyword": "sanity"
}

Contributor