Cannot query by where inside group field

Even though the group where query definition is provided, it does not return the correct data:

e.g

allFaqs_pages(where: {categories: { hide: false }}) {
    edges {
      node {
        categories {
          hide
        }
      }
    }
  }

ignores the where definition returning results unfiltered.

1 Like

Hey @tech7, thanks for reaching out
The syntax of your query is correct. Could you send me the URL of your repository so I can do a test on my end? You can send it via dm if you prefer.

Thanks

Ok, I see the issue. The where argument allows you to filter the response between repeatable documents and not between elements inside a group field. Also, I noticed that Faqs_page is a singleton Custom Type. So the query is only ever going to retrieve one coincidence for each query you make for that type.

Ah I see, thanks for your help.

Of course. Please let us know if we can help you with anything else

This thread has been closed due to inactivity. Flag to reopen.