1
1
---
2
- title : The New GraphiQL 5 is Released
2
+ title : The New GraphiQL 5 is Released; Press F1!
3
3
tags : [announcements, grants]
4
4
date : 2025-06-10
5
5
byline : Dimitri Postolov
6
6
---
7
7
8
8
import { Callout } from " nextra/components"
9
9
10
+ <figure className = " mt-6" >
11
+ <>![ GraphiQL 5 with Monaco Editor Preview] ( ./graphiql-5.png ) </>
12
+ { /* prettier-ignore */ }
13
+ <figcaption className = " mt-2 text-center" >GraphiQL 5 with Monaco Editor Preview</figcaption >
14
+ </figure >
15
+
10
16
This post marks the completion of ** 8 weeks** of work on my GraphiQL grant,
11
17
sponsored by the ** GraphQL Foundation** .
12
18
@@ -32,7 +38,7 @@ another exciting milestone in the evolution of the project.
32
38
GraphiQL 5 now uses [ Monaco editor] [ monaco-editor ] as default editor, the same
33
39
editor used in [ VSCode] ( https://code.visualstudio.com ) .
34
40
35
- Monaco Editor runs heavy language features (like syntax analysis, linting, and
41
+ Monaco editor runs heavy language features (like syntax analysis, linting, and
36
42
IntelliSense) in
37
43
[ Web Workers] ( https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers ) ,
38
44
keeping the UI smooth and responsive.
@@ -74,8 +80,6 @@ I updated [GraphiQL CDN example][graphiql-cdn] to show how to use GraphiQL with
74
80
** GraphiQL with Parcel** and ** GraphiQL with Create React App** examples were
75
81
removed.
76
82
77
- #### New Examples
78
-
79
83
In addition to updated [ GraphiQL CDN example] [ graphiql-cdn ] , I've added 2 new
80
84
examples
81
85
[ GraphiQL with Vite] ( https://github.com/graphql/graphiql/tree/main/examples/graphiql-vite )
@@ -139,6 +143,19 @@ function App() {
139
143
- ` validationRules ` - use custom GraphQL worker, see
140
144
[ Monaco GraphQL docs] ( https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker )
141
145
146
+ <figure className = " mt-6" >
147
+ { /* prettier-ignore */ }
148
+ <>![ Example of custom GraphQL validation rules] ( ./custom-rules-example.png ) </>
149
+ { /* prettier-ignore */ }
150
+ <figcaption className = " mt-2 text-center" >Example of custom GraphQL validation rules</figcaption >
151
+ </figure >
152
+
153
+ ### Additional Changes
154
+
155
+ The shortcut to focus on the Doc Explorer search input is now ` Cmd/Ctrl+Alt+K `
156
+ instead of the previous ` Cmd/Ctrl+K ` . This was changed because monaco-editor has
157
+ a built-in ` Cmd/Ctrl+K ` command.
158
+
142
159
## How to Update
143
160
144
161
Update ` graphiql ` using your favorite package manager:
@@ -206,6 +223,11 @@ Follow me, **Dima Machina**, on [𝕏](https://x.com/dimaMachina_) and
206
223
[ GitHub] ( https://github.com/dimaMachina ) to stay up to date with the latest
207
224
updates!
208
225
226
+ <Callout >
227
+ I am available for consulting and open to new and exciting challenges. Please
228
+ feel free to get in touch.
229
+ </Callout >
230
+
209
231
[ monaco-editor ] : https://github.com/microsoft/monaco-editor
210
232
[ graphiql-cdn] :
211
233
https://github.com/graphql/graphiql/blob/main/examples/graphiql-cdn/index.html
0 commit comments