Skip to main content

Command Palette

Search for a command to run...

how to filter in dynamic zone in strapi using graphql?

how to filter in dynamic zone in strapi using graphql?

Published
โ€ข1 min read
how to filter in dynamic zone in strapi using graphql?
J

a simple man

hello, dev's. i need help in strapi. if any one know please help me! thanks ๐Ÿ™‚

query GetPosts($datelte: Date!, $dategte: Date!, $searchkey: String) {
  posts(filters: { effectiveDate: { lte: $datelte, gte: $dategte } }) {
    data {
      attributes {
        effectiveDate
        contentSections {
        ... on ComponentElementsEvents {
          title
            }
        }
      }
    }
  }
}

here how can I add a search filter by searchkey for the title?

title it's inside a dynamic zone.

dynamic zone image filed inside dynamic zone filter