Linux 软件免费装
Banner图

Gato GraphQL

开发者 gatographql
leoloso
更新时间 2024年10月11日 21:04
PHP版本: 7.2 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

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

下载

2.5.2 1.5.2 4.0.0 5.0.0 6.0.1 6.0.2 6.0.0 2.6.0 4.1.1 4.2.0 2.0.1 2.2.2 1.5.0 1.5.1 3.0.0 1.5.3 2.1.3 1.6.0 4.1.0 2.4.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

详情介绍:

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.

屏幕截图:

  • 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 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 does Gato GraphQL compare against WPGraphQL?

Check out the Gato GraphQL vs WPGraphQL comparison.

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, for 7 days.

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.

更新日志:

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