Linux 软件免费装
Banner图

Gato GraphQL

开发者 gatographql
leoloso
更新时间 2024年12月16日 18:45
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

api rest GraphQL wp-cli rest-api astro webhook react headless decoupled wpgraphql Next.js

下载

8.0.0 7.0.3 4.2.0 1.5.0 1.5.1 1.5.3 2.1.3 4.1.0 2.4.1 2.2.0 2.2.1 1.5.4 2.2.3 2.3.0 2.5.0 2.1.0 2.5.1 2.4.0 3.0.0 4.0.0 4.1.1 5.0.0 6.0.0 1.5.2 2.0.1 2.5.2 2.6.0 6.0.1 7.0.0 7.0.4 7.0.5 1.6.0 2.2.2 6.0.2 9.0.0

详情介绍:

Gato GraphQL is a powerful and flexible GraphQL server for WordPress. Use it to expose WordPress data via GraphQL. Access any piece of data (posts, users, comments, tags, categories, etc) from your application, and also transform and mutate data. The standard use cases are: Code performant apps: Send a GraphQL query to your API and get exactly what you need, nothing more and nothing less. Build dynamic/headless sites: Use WordPress as the CMS to manage data, and your framework of choice to render the site. Speed up creating Gutenberg blocks: Ship Gutenberg blocks faster, by avoiding creating REST controllers to feed them data. With Gato GraphQL, you also have the flexibility to migrate your application from WordPress to another PHP-based framework or CMS (if ever needed) with minimal effort: The GraphQL server can run via its standalone PHP component (which doesn't depend on WordPress), and only those resolvers fetching WordPress data (posts, users, comments, etc) used by your application would need to be ported. You can do Headless WordPress without WordPress, avoiding the vendor lock-in to WordPress.

屏幕截图:

  • Interactively browse the GraphQL schema, exploring all connections among entities
  • The GraphiQL client for the single endpoint is exposed to the Internet
  • Interactively browse the GraphQL schema exposed for the single endpoint
  • Persisted queries are pre-defined and stored in the server
  • Requesting a persisted query URL will retrieve its pre-defined GraphQL response
  • We can create multiple custom endpoints, each for a different target
  • Endpoints are configured via Schema Configurations
  • We can create many Schema Configurations, customizing them for different users or applications
  • Custom endpoints and Persisted queries can be public, private and password-protected
  • Manage custom endpoints and persisted queries by adding categories to them
  • We can configure exactly what custom post types, options and meta keys can be queried
  • Configure every aspect from the plugin via the Settings page
  • Modules with different functionalities and schema extensions can be enabled and disabled
  • Augment the plugin functionality and GraphQL schema via extensions
  • The Tutorial section explains how to achieve many objectives, exploring all the elements from the GraphQL schema

常见问题:

Does the plugin provide documentation?

The Gato GraphQL website contains extensive documentation:

Can I extend the GraphQL schema with my custom types and fields?

Yes you can. Use the GitHub template GatoGraphQL/ExtensionStarter to create an extension, and follow the documentation there.

How does Gato GraphQL complement WP-CLI?

With Gato GraphQL you can query data from the WordPress database, and then inject the results into a WP-CLI command (either to select a specific resource, or update an option with some value, or other). Check out guide Complementing WP-CLI for a thorough description on how to do it.

How do I use Gato GraphQL to build headless sites?

With Gato GraphQL you can create an endpoint that exposes the data from your WordPress site. Then, within the framework of your choice, you can query the data and render the HTML. Among others, you can use any of these libraries/frameworks:

  • Apollo
  • React
  • Vue
  • Next.js
  • Nuxt
  • Hugo
  • Astro
  • VitePress
  • Svelte
  • Eleventy

Can I run Gato GraphQL without WordPress?

Yes you can. Gato GraphQL can be included within any PHP-based application (not only WordPress), based on Laravel, Symfony, or any other. Check guide Running Gato GraphQL without WordPress for the explanation on how to do it.

Can I fetch Gutenberg block data with Gato GraphQL?

Yes you can. Check guide Working with (Gutenberg) blocks for the different ways in which we can query block data, and guide Mapping JS components to (Gutenberg) blocks for an example.

Does Gato GraphQL support WordPress Multisite?

Yes, it does. Gato GraphQL can be installed on a multisite network. In addition, Gato GraphQL provides fields on the GraphQL schema to retrieve multisite network data, allowing to use GraphQL to sync content across the multisite.

How does Gato GraphQL compare against the WP REST API?

Check out the Gato GraphQL vs WP REST API comparison.

How to replace the WP REST API with Gato GraphQL?

Check out the Replacing the WP REST API guide.

How does Gato GraphQL compare against WPGraphQL?

Check out the Gato GraphQL vs WPGraphQL comparison.

How to replace WPGraphQL with Gato GraphQL?

Check out the Replacing WPGraphQL guide.

Can I migrate from WordPress to Laravel/Symfony/etc?

Yes you can. Even more, only the WordPress-specific packages to fetch WordPress data (posts, users, comments, etc) used by your application would need to be ported to the new framework/CMS, and nothing else. Check guide Migrating your app from WordPress to another PHP framework or CMS to learn more.

What are extensions needed for?

Extensions are needed to enhance the security of public APIs, add HTTP caching to speed up the application, execute multiple queries in a single request, connect to external services, send emails, and others.

Does Gato GraphQL have a refund policy?

Yes it does. If you have purchased any Gato GraphQL product and found out that it's not the right tool to satisfy your needs, you have 30 days to ask for a refund.

Can I try out Gato GraphQL + all extensions?

Yes, you can launch your own sandbox site to play with Gato GraphQL + all extensions, for free.

Is the plugin open source?

Yes it is. The source code for the plugin is in GitHub repo GatoGraphQL/GatoGraphQL. The JavaScript source code for the blocks is under layers/GatoGraphQLForWP/plugins/gatographql/blocks.

更新日志:

9.0.0 8.0.0 7.0.8 7.0.5 7.0.4 7.0.3 7.0.2 7.0.1 7.0.0 6.0.2 6.0.0 5.0.0 4.2.0 4.1.0 4.0.0 3.0.0 2.6.0 2.5.2 2.5.1 2.5.0 2.4.1 2.4.0 2.3.0 2.2.3 2.2.2 2.2.1 2.2.0 2.1.3 2.1.0 2.0.0 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.1.0 1.0.15 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10 1.0