Im trying to query a collection and filter it depends on the $path var but it either returns empty or throwing an error
<page-query>
query Gallery($path: String!){
photos : allPhotos(filter: { nameFromGalleries: { contains: [$path]}}){
edges{
node{
nameFromGalleries
galleries
attachments{
thumbnails{
full{
url
}
}
}
}
}
}
</page-query>
for another query on the same page it works just fine
gallery : gallery(path: $path){
title
children{
name
path
}
}