11---
2- title : The New GraphiQL 5 is Released
2+ title : The New GraphiQL 5 is Released; Press F1!
33tags : [announcements, grants]
44date : 2025-06-10
55byline : Dimitri Postolov
66---
77
88import { Callout } from " nextra/components"
99
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+
1016This post marks the completion of ** 8 weeks** of work on my GraphiQL grant,
1117sponsored by the ** GraphQL Foundation** .
1218
@@ -32,7 +38,7 @@ another exciting milestone in the evolution of the project.
3238GraphiQL 5 now uses [ Monaco editor] [ monaco-editor ] as default editor, the same
3339editor used in [ VSCode] ( https://code.visualstudio.com ) .
3440
35- Monaco Editor runs heavy language features (like syntax analysis, linting, and
41+ Monaco editor runs heavy language features (like syntax analysis, linting, and
3642IntelliSense) in
3743[ Web Workers] ( https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers ) ,
3844keeping the UI smooth and responsive.
@@ -74,8 +80,6 @@ I updated [GraphiQL CDN example][graphiql-cdn] to show how to use GraphiQL with
7480** GraphiQL with Parcel** and ** GraphiQL with Create React App** examples were
7581removed.
7682
77- #### New Examples
78-
7983In addition to updated [ GraphiQL CDN example] [ graphiql-cdn ] , I've added 2 new
8084examples
8185[ GraphiQL with Vite] ( https://github.com/graphql/graphiql/tree/main/examples/graphiql-vite )
@@ -139,6 +143,19 @@ function App() {
139143- ` validationRules ` - use custom GraphQL worker, see
140144 [ Monaco GraphQL docs] ( https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker )
141145
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+
142159## How to Update
143160
144161Update ` graphiql ` using your favorite package manager:
@@ -206,6 +223,11 @@ Follow me, **Dima Machina**, on [𝕏](https://x.com/dimaMachina_) and
206223[ GitHub] ( https://github.com/dimaMachina ) to stay up to date with the latest
207224updates!
208225
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+
209231[ monaco-editor ] : https://github.com/microsoft/monaco-editor
210232[ graphiql-cdn] :
211233 https://github.com/graphql/graphiql/blob/main/examples/graphiql-cdn/index.html
0 commit comments