Linux 软件免费装
Banner图

WPGraphQL IDE

开发者 jasonbahl
joefusco
更新时间 2026年6月11日 05:36
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-3.0
版权网址: 版权信息

标签

headless decoupled graphql devtools

下载

4.4.1 4.2.0 4.3.0 4.0.3 4.5.0 5.0.0 4.1.0 4.4.0 5.0.1

详情介绍:

WPGraphQL IDE is a next-generation query editor for WPGraphQL, built on WordPress's component library and CodeMirror 6. It replaces the bundled legacy GraphiQL interface with a faster, more extensible IDE that feels native to wp-admin. Three ways to open the IDE: Editor features: What's new in 5.0: For the complete breaking-change list and 4.x → 5.0 migration guide, see UPGRADE-5.0.md in the plugin or the project's GitHub releases.

安装:

  1. Install and activate WPGraphQL — required.
  2. (Optional but recommended) Install and activate WPGraphQL Smart Cache — unlocks Saved Queries, personal collections, share links, and the Document Settings drawer.
  3. Install WPGraphQL IDE from the WordPress.org plugin directory, or upload the plugin zip and activate it.
  4. Open the IDE from GraphQL → GraphQL IDE in the admin menu, or click the GraphQL IDE entry in the admin bar.
The IDE requires the manage_graphql_ide capability, which is granted to administrators by default. Hosts can override the capability requirement via the wpgraphql_ide_capability_required filter.

屏幕截图:

  • Browse the schema in the Docs explorer — search types and fields, and Cmd-click from the editor to jump straight to a type.
  • Per-user execution history alongside clear, inline error reporting, with tracing, query log, and response-header tabs.

升级注意事项:

5.0.0 Major rebuild on @wordpress/components + CodeMirror 6. Saved-document storage moves to WPGraphQL Smart Cache's graphql_document post type (install Smart Cache to keep Saved Queries / Document Settings / share links). Three render modes (admin page / drawer / public endpoint). Full breaking-change list and 4.x → 5.0 migration guide in UPGRADE-5.0.md (bundled with the plugin) — most user data (open tabs, query history) auto-migrates on first load. WPGraphQL IDE follows Semver versioning. Breaking changes will be documented in the Upgrade Notice section above.

常见问题:

How do I open the IDE?

The plugin adds three entry points: a dedicated admin page under GraphQL → GraphQL IDE, a slide-up drawer triggered from the GraphQL IDE link in the admin bar (works on every wp-admin and front-end page), and an opt-in public endpoint mode that renders the IDE when you visit the GraphQL endpoint URL in a browser.

Do I need WPGraphQL Smart Cache?

No — the IDE works as a standalone GraphQL client without it. Smart Cache is optional but unlocks the saved-document features: the Saved Queries panel, personal collections, share links, and the Document Settings drawer. Install Smart Cache and the IDE detects it automatically; no configuration needed.

What changed in 5.0?

5.0 rebuilds the UI on @wordpress/components and CodeMirror 6, moves saved-document storage onto Smart Cache's graphql_document post type, and ships full internationalization. Extension authors should consult UPGRADE-5.0.md (bundled with the plugin) — several legacy hooks were renamed, and a few were briefly removed and then restored with improved behavior. Open tabs and query history saved by 4.x are migrated forward automatically on first 5.0 load.

How do I enable the public endpoint?

Under GraphQL → IDE Settings, check Public IDE at GraphQL endpoint. Once enabled, browser visits to the GraphQL endpoint URL (with an HTML Accept header) render the IDE shell instead of returning JSON. API clients (curl, fetch with Content-Type: application/json, GraphQL clients in general) keep getting JSON as before. Optionally enable Allow sign-in on the public IDE to surface a sign-in prompt to anonymous visitors.

Where can I find the non-compressed JavaScript and CSS source code?

The non-compressed source code for the JavaScript and CSS files is available in the following directories:

You can view or download the source code directly from the GitHub repository.

What are the major dependencies?

  • CodeMirror 6 (codemirror.net) — the editor surface, with cm6-graphql for schema-aware GraphQL highlighting + autocomplete
  • @wordpress/components and @wordpress/data — UI primitives and state management
  • @graphiql/toolkit — fragment-merging utilities reused from the GraphiQL project
  • vaul (github.com/emilkowalski/vaul) — the slide-up drawer
  • graphql-js (github.com/graphql/graphql-js) — the underlying GraphQL parser

Where do I report bugs or request features?

Open an issue at github.com/wp-graphql/wp-graphql. For security issues, please follow the security policy instead of filing a public issue.

How does WPGraphQL IDE handle privacy and telemetry?

WPGraphQL IDE uses the Appsero SDK to collect telemetry data only after user consent. This helps improve the plugin while respecting user privacy. When telemetry is enabled, the same payloads are also mirrored to WPGraphQL-operated infrastructure at https://telemetry.wpgraphql.com.

更新日志:

5.0.1 Bug Fixes 5.0.0 Breaking changes New features 4.5.0 New Features Bug Fixes 4.4.1 Bug Fixes 4.4.0 New Features 4.3.0 New Features Bug Fixes 4.2.0 New Features Bug Fixes 4.1.0 New Features Bug Fixes 4.0.11 - 4.0.24 Patch Changes 4.0.10 Patch Changes 4.0.9 Patch Changes 4.0.8 Patch Changes 4.0.7 Patch Changes 4.0.6 Patch Changes 4.0.5 Patch Changes 4.0.4 Patch Changes 4.0.3 Patch Changes 4.0.2 Patch Changes 4.0.1 Patch Changes Improved 4.0.0 Major Changes Patch Changes