Sitecore Community GraphQL Cookbook

Fields - List all fields for an Item

Listing all fields for an Item.
Source: Mihály Árvai
    Delivery APIFieldsCommunity

JSON Variables


Query


JSON Response

1{
2  "data": {
3    "item": {
4      "onlyOwnFields": [
5        {
6          "id": "06DE8CF66C98430F8EF548305AD5D5A7",
7          "__typename": "TextField",
8          "name": "Title",
9          "value": "mihaly-demo-site",
10          "jsonValue": {
11            "value": "mihaly-demo-site"
12          }
13        },
14        {
15          "id": "5CFF5B31DD4E4DE5BF78841262DB9773",
16          "__typename": "RichTextField",
17          "name": "Content",
18          "value": "",
19          "jsonValue": {
20            "value": ""
21          }
22        }
23      ],
24      "allFields": [
25        {
26          "id": "06DE8CF66C98430F8EF548305AD5D5A7",
27          "__typename": "TextField",
28          "name": "Title",
29          "value": "mihaly-demo-site",
30          "jsonValue": {
31            "value": "mihaly-demo-site"
32          }
33        },
34        {
35          "id": "5CFF5B31DD4E4DE5BF78841262DB9773",
36          "__typename": "RichTextField",
37          "name": "Content",
38          "value": "",
39          "jsonValue": {
40            "value": ""
41          }
42        },
43        {
44          "id": "4E0720E99D504DDC87CFECD65E8E94C8",
45          "__typename": "TextField",
46          "name": "NavigationTitle",
47          "value": "mihaly-demo-site",
48          "jsonValue": {
49            "value": "mihaly-demo-site"
50          }
51        },
52        {
53          "id": "0D83E59AC3F141BE81B2762D35E0799F",
54          "__typename": "LookupField",
55          "name": "NavigationClass",
56          "value": "",
57          "jsonValue": null
58        },
59        {
60          "id": "1FBC6A49628148EE87E9A3970B145ADB",
61          "__typename": "MultilistField",
62          "name": "NavigationFilter",
63          "value": "",
64          "jsonValue": []
65        },
66        {
67          "id": "76FB6FFD44874028A1CF705FBE360CBA",
68          "__typename": "LookupField",
69          "name": "Priority",
70          "value": "{19F3E919-4991-495F-9207-E1DADFD06F54}",
71          "jsonValue": {
72            "id": "19f3e919-4991-495f-9207-e1dadfd06f54",
73            "url": "http://localhost/en/sitecore/login/sitecore/system/Settings/Foundation/Experience-Accelerator/SiteMetadata/Enums/SitemapPriority/05",
74            "name": "05",
75            "displayName": "0.5",
76            "fields": {
77              "Value": {
78                "value": "0.5"
79              }
80            }
81          }
82        },
83        {
84          "id": "508C54C0CD0242668B68D71F88DE1AA9",
85          "__typename": "LookupField",
86          "name": "ChangeFrequency",
87          "value": "{D23B4654-53A5-4589-8B1B-5665A763D144}",
88          "jsonValue": {
89            "id": "d23b4654-53a5-4589-8b1b-5665a763d144",
90            "url": "http://localhost/en/sitecore/login/sitecore/system/Settings/Foundation/Experience-Accelerator/SiteMetadata/Enums/SitemapChangeFrequency/daily",
91            "name": "daily",
92            "displayName": "daily",
93            "fields": {
94              "Value": {
95                "value": "Daily"
96              }
97            }
98          }
99        },
100        {
101          "id": "97FB669D5B8E48299A2406418C315D73",
102          "__typename": "MultilistField",
103          "name": "SxaTags",
104          "value": "",
105          "jsonValue": []
106        },
107        {
108          "id": "24171BF1C0E1480EBE764C0A1876F916",
109          "__typename": "LookupField",
110          "name": "Page Design",
111          "value": "",
112          "jsonValue": null
113        },
114        {
115          "id": "BA3F86A24A1C4D78B63D91C2779C1B5E",
116          "__typename": "TextField",
117          "name": "__Sortorder",
118          "value": "",
119          "jsonValue": {
120            "value": ""
121          }
122        },
123        {
124          "id": "25BED78C49574165998ACA1B52F67497",
125          "__typename": "DateField",
126          "name": "__Created",
127          "value": "20240823T080244Z",
128          "jsonValue": {
129            "value": "2024-08-23T08:02:44Z"
130          }
131        },
132        {
133          "id": "D9CF14B1FA164BA69288E8A174D4D522",
134          "__typename": "DateField",
135          "name": "__Updated",
136          "value": "20240823T080309Z",
137          "jsonValue": {
138            "value": "2024-08-23T08:03:09Z"
139          }
140        },
141        {
142          "id": "A14F1B0C438449EC879028A440F3670C",
143          "__typename": "MultilistField",
144          "name": "__Semantics",
145          "value": "",
146          "jsonValue": []
147        }
148      ]
149    }
150  }
151}