You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: umbraco-heartcore/getting-started/graphql-playground.md
+54-17Lines changed: 54 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,31 +17,27 @@ The Playground comes with basic features such as real-time error highlighting, s
17
17
1. Log into the project backoffice
18
18
2. Navigate to the Settings dashboard
19
19
3. Find the Headless tree near the bottom of the navigation list
20
-
4. Click on GraphQL Playground
20
+
4. Click on GraphQL
21
21
22
-

22
+

23
23
24
24
From there, you can start querying as soon as your content is published.
25
25
26
26
## Features
27
27
28
-
### Documentation
28
+
### Documentation & Schema
29
29
30
-
The GraphQL Playground's built-in documentation can be found on the right side, under the "Docs" tab.
30
+
The GraphQL Playground's build-in documentation and schema browser can be found on the left toolbar
31
31
32
-
The documentation tab grants a quick overview of how content is structured using the Document Types in your solution. It also gives an idea of how to access specific properties on each of the Document Types as well as nested properties and properties from Compositions.
32
+
This button will open a pane that grants you a quick overview of how content is structured using the Document Types in your solution.
33
33
34
-

34
+
It also gives an idea of how to access specific properties on each of the Document Types as well as nested properties and properties from Compositions.
35
35
36
-
The documentation will be automatically updated as you add new Document Types to match the schema you have on your project.
36
+
While at the same time also explains relationships between specific object and properties in your solution.
37
37
38
-
## Schema
38
+
This will be updated automatically as you make change to the projects schema meaning Document Types, Data Types, Document Type Compositions and Document Type Elements.
39
39
40
-
The Schema tab also can be found on the right side of the GraphQL Playground. It is located below the "Docs" tab.
41
-
42
-
The Schema menu explains the relationships between specific objects and properties in your solution, and will be updated automatically as you make changes to the project's schema meaning Document Types, Data Types, Document Type Compositions and Document Type Elements.
43
-
44
-

40
+

45
41
46
42
## Running GraphQL queries
47
43
@@ -65,26 +61,67 @@ The Heartcore GraphQL endpoint only supports queries - other operation types, th
65
61
66
62
After that, press the "Play" button sitting in the center of the Playground. If the query is constructed correctly, the results will be loaded into the right section.
67
63
68
-

64
+

69
65
70
66
When you are satisfied with the result, you can copy the client URL (CURL) by clicking the `COPY CURL` button located in the top part of the Playground, next to the address bar.
71
67
72
68
## Sending HTTP headers
73
69
74
-
GraphQL Playground supports requests made with HTTP headers - in case for example an authorization token is needed. The `HTTP HEADERS` section can be accessed from the bottom-left corner of the Playground window. By default, it contains the `umb-project-alias` header, which is the alias of your Heartcore project. It is possible to add multiple headers.
70
+
GraphQL Playground supports requests made with HTTP headers - in case for example an authorization token is needed. The `HTTP HEADERS` section can be accessed from the bottom-right corner of the Playground window. By default, it contains the `umb-project-alias` header, which is the alias of your Heartcore project. It is possible to add multiple headers.
75
71
76
72
## Query variables
77
73
78
74
It is also possible to define variables for queries - such variables's values can be changed in the bottom-left corner of the Playground window, next to the `HTTP HEADERS` section.
79
75
80
-

76
+

81
77
82
78
## History
83
79
84
-
If you happened to make an amazing query and afterwards erased it by accident, you would be able to re-use it by finding it in the History. The History menu can be found in the top part of the Playground, above the query input section.
80
+
If you happened to make an amazing query and afterwards erased it by accident, you would be able to re-use it by finding it in the History.
81
+
82
+
The History pane can be opened by clicking the history button in the toolbar to the left.
83
+
84
+

85
85
86
86
## Prettify
87
87
88
88
The Playground gives you an option to "prettify" your query with a click of a button, which makes it easier for humans to read.
89
89
90
90

91
+
92
+
## Persisted Queries
93
+
94
+
The Graphql playground supports persisted graphql queries.
95
+
To access Persisted queries you have to go to the [GraphQL Playground](#accessing-graphql-playground) and click the persisted queries tab
0 commit comments