Sitecore Community GraphQL Cookbook

Get App/Site Root Id

GraphQL query to retrieve the App/Site root id. This is being used the JSS SDK
Source: JSS SDK
    Sitecore DocumentationDelivery API

JSON Variables


Query


JSON Response

1{
2  "data": {
3    "layout": {
4      "homePage": {
5        "rootItem": [
6          {
7            "id": "11A1E51F84B644D0A8755BB4475C42AC"
8          }
9        ]
10      }
11    }
12  }
13}