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
Introspection fields `__typename`, `__schema`, `__type` are always allowed.
71
71
72
+
## Exploring the schema
73
+
74
+
The fastest way to design queries for a webapp is the interactive GraphQL playground at <https://app.openhexa.org/graphql/> (or `/graphql/` on your own install).
75
+
76
+
Note that the playground shows the **full** schema, not just what the webapp proxy allows. A query that works there can still return `403` from a webapp at runtime if its top-level field isn't covered by the webapp's [scopes](#scope-reference) — cross-check before pasting into webapp code.
77
+
72
78
## The `window.OPENHEXA` global
73
79
74
80
When OpenHEXA serves your static webapp's HTML it injects a small script before `</head>` that exposes:
@@ -93,6 +99,47 @@ Each example below is a complete `index.html` you can drop into a static webapp.
93
99
94
100
Displays the current user and workspace on load.
95
101
102
+
<detailsmarkdown="1">
103
+
<summary>Schema</summary>
104
+
105
+
```graphql
106
+
typeQuery {
107
+
me: Me!
108
+
workspace(slug: String!): Workspace
109
+
}
110
+
111
+
typeMe {
112
+
user: User
113
+
features: [FeatureFlag!]!
114
+
permissions: MePermissions!
115
+
}
116
+
117
+
typeUser {
118
+
id: UUID!
119
+
email: String!
120
+
firstName: String
121
+
lastName: String
122
+
displayName: String!
123
+
language: String!
124
+
avatar: Avatar!
125
+
}
126
+
127
+
typeWorkspace {
128
+
slug: String!
129
+
name: String!
130
+
description: String
131
+
countries: [Country!]!
132
+
organization: Organization
133
+
createdAt: DateTime!
134
+
updatedAt: DateTime
135
+
createdBy: User!
136
+
}
137
+
```
138
+
139
+
[Browsethefullschema in the playground →](https://app.openhexa.org/graphql/)
140
+
141
+
</details>
142
+
96
143
```html
97
144
<!DOCTYPE html>
98
145
<html>
@@ -140,6 +187,46 @@ Displays the current user and workspace on load.
140
187
141
188
Lists every pipeline in the workspace.
142
189
190
+
<detailsmarkdown="1">
191
+
<summary>Schema</summary>
192
+
193
+
```graphql
194
+
typeQuery {
195
+
pipelines(
196
+
workspaceSlug: String
197
+
name: String
198
+
search: String
199
+
tags: [String!]
200
+
functionalType: PipelineFunctionalType
201
+
lastRunStates: [PipelineRunStatus!]
202
+
page: Int
203
+
perPage: Int
204
+
orderBy: PipelineOrderBy
205
+
): PipelinesPage!
206
+
}
207
+
208
+
typePipelinesPage {
209
+
items: [Pipeline!]!
210
+
pageNumber: Int!
211
+
totalPages: Int!
212
+
totalItems: Int!
213
+
}
214
+
215
+
typePipeline {
216
+
id: UUID!
217
+
code: String!
218
+
name: String
219
+
description: String
220
+
schedule: String
221
+
currentVersion: PipelineVersion
222
+
type: PipelineType!
223
+
}
224
+
```
225
+
226
+
[Browsethefullschema in the playground →](https://app.openhexa.org/graphql/)
227
+
228
+
</details>
229
+
143
230
```html
144
231
<!DOCTYPE html>
145
232
<html>
@@ -196,6 +283,60 @@ Lists every pipeline in the workspace.
196
283
197
284
Loads the list of pipelines on page open, lets you pick one from a dropdown, and runs it with a JSONconfig. Polls the run status until it terminates. Requires both `PIPELINES_READ` (to list) and `PIPELINES_RUN` (to launch).
union PipelineRunOutput = BucketObject | GenericOutput | DatabaseTable
334
+
```
335
+
336
+
[Browse the full schema in the playground →](https://app.openhexa.org/graphql/)
337
+
338
+
</details>
339
+
199
340
```html
200
341
<!DOCTYPE html>
201
342
<html>
@@ -301,6 +442,57 @@ Loads the list of pipelines on page open, lets you pick one from a dropdown, and
301
442
302
443
Lists CSV files in the workspace bucket on page load, lets you pick one from a dropdown, and renders the first 100 lines as a table. Requires both `USER_READ` (to list files via `workspace.bucket.objects`) and `FILES_READ` (to read content).
0 commit comments