Filtering queries

This is the query I’m trying to do:

query SectionVideoQuery {
section {
sectionpath
name
slug
headline
id
url
}
allVideos**(filter: {section: {slug: {eq: “edge-videos”}}})** {
title
description
url
embed
slug
section {
slug
}
}
}

Special attention to (filter: {section: {slug: {eq: “edge-videos”}}})

It gives me an error: Field slug is not defined by the type LinkFilter

So I had to add a new field and change the query to this.

query SectionVideoQuery {
section {
sectionpath
name
slug
headline
id
url
}
allVideos(filter: {sectionslug: {eq: “edge-videos”}}) {
title
description
url
embed
slug
section {
slug
}
}
}

It is working, but not very clean. Ideally, I can just do the original query.

hello @chris1 unfortunately you’ve hit a limitation of our system, it’s related to this feature request: Deep filtering on both CMA and CDA

please upvote it if you care about that!