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.