Skip to content

Commit b310c41

Browse files
committed
images and polish
1 parent 3d424ca commit b310c41

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed
156 KB
Loading
337 KB
Loading

src/pages/blog/2025-06-10-graphiql-5/index.mdx

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
---
2-
title: The New GraphiQL 5 is Released
2+
title: The New GraphiQL 5 is Released; Press F1!
33
tags: [announcements, grants]
44
date: 2025-06-10
55
byline: Dimitri Postolov
66
---
77

88
import { 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+
1016
This post marks the completion of **8 weeks** of work on my GraphiQL grant,
1117
sponsored by the **GraphQL Foundation**.
1218

@@ -32,7 +38,7 @@ another exciting milestone in the evolution of the project.
3238
GraphiQL 5 now uses [Monaco editor][monaco-editor] as default editor, the same
3339
editor 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
3642
IntelliSense) in
3743
[Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers),
3844
keeping 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
7581
removed.
7682

77-
#### New Examples
78-
7983
In addition to updated [GraphiQL CDN example][graphiql-cdn], I've added 2 new
8084
examples
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

144161
Update `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
207224
updates!
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

Comments
 (0)