A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our Systems Remain Fully Protected. Learn More.
Am not sure if Content Graph supports filtering on nested block properties within content areas. However you could do something like this (unless you find a query example with filter)
Get Page types you need by expanding the content area on the types you are looking to filter on and then do client side filtering for the word in the expanded item.
Hi Frida,
Here is a sample query about querying block on a content area in page
query MyQuery {
HomePage {
item {
MainContentArea {
ContentLink {
Expanded {
Name
... on FreeTextBlock {
HeadingBlock {
Heading
HeadingStyle
HeadingAlignment
}
Content
}
}
}
}
}
}
}
I'm new to Graph QL and ContentGraph and want to know if there is a way to query blocks that's on a page? Lets say I have a textblock that contains information about "Our shirts" on a page, if I do a search on "shirts", I want to get a result with the page containing that textblock.