Contentstack GraphQL API | AND Operator within Modular Blocks
Request
xxxxxxxxxx
query ANDOperatorwithinModularBlocks{
all_product(
where: {
AND: [
{
additional_info: {
deals: {
deal_name: "Christmas Deal"
}
}
},
{
additional_info: {
rating: {
stars: 2
}
}
}
]
}) {
items {
additional_info {
... on ProductAdditionalInfoRelatedProducts {
related_products {
productsConnection {
edges {
node {
... on Product {
title
}
}
}
}
}
}
... on ProductAdditionalInfoRating {
rating {
stars
}
}
... on ProductAdditionalInfoDeals {
deals {
deal_name
deal_details
}
}
}
}
}
}