How to filter Collections based on Metafields?

I want to achieve something like this?

query getCollections {
    collections(query: metafield(namespace:"Banner" AND key:"isBanner" AND value:"true")) {
        edges {
            node {
                id
                title
            }
        }
    }
}
1 Like