Exam4Training

Which of these options best describes the purpose of the following query to the Experience Edge GraphQL schema?

Which of these options best describes the purpose of the following query to the Experience Edge GraphQL schema?

query {

layout(site: "experienceedge", routePath: "/", language: "en") {

item {

homeltemPath: path

contentRoot: parent {

id

path

}

}

}

}
A . To get an item by ID
B . To get the root item of a site
C . To get the item layout for a URL
D . To get information about a specific content site

Answer: C

Explanation:

The query to the Experience Edge GraphQL schema is designed to retrieve the layout information for a specific URL, which in this case is the root path (“/”) of a site named “experienceedge”. This allows developers to access the Layout Service JSON for the item, which is essential for rendering the page in a headless setup.

Reference: The Sitecore XM Cloud documentation describes the Experience Edge schema as a read-only GraphQL schema that supports common front-end use cases for headless Sitecore development, including querying an item’s layout by site and route path1.

Exit mobile version