开发者 |
gatographql
leoloso |
---|---|
更新时间 | 2024年10月11日 21:04 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 6.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
The Gato GraphQL website contains extensive documentation:
Yes you can. Use the GitHub template GatoGraphQL/ExtensionStarter to create an extension, and follow the documentation there.
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.
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:
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.
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.
Check out the Gato GraphQL vs WP REST API comparison.
Check out the Gato GraphQL vs WPGraphQL comparison.
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.
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.
Yes, you can launch your own sandbox site to play with Gato GraphQL + all extensions, for free, for 7 days.
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.
from
email not provided in _sendEmail
mutation, use the blog's admin emailisGutenbergEditorEnabled
(#2801)isGutenbergEditorEnabled
in predefined persisted queries (#2802)post_tag
and category
) (#2823)PostTag
and PostCategory
types (#2824)Root.tags/categories
and CustomPost.tags/categories
fields (#2827)featuredImage
field on GenericCustomPost
(#2806)blocks
, blockDataItems
, and blockFlattenedDataItems
, avoid error when post has no content (#2814)attrs
field when creating persisted query blocks (#3adde2e)assign_terms
capability on setCategory
and setTag
mutations (#2772)Media.parentCustomPost
(#2788)Root.updateMediaItem
(#2790)add_attachment
(#2796)@strQuoteRegex
in predefined persisted queries (#2758)new
and auto-draft
old status in {$old_status}_to_{$new_status}
hook (#1376)draft_to_publish
, also trigger from new
, auto-draft
, pending
, future
, and private
states_strQuoteRegex
and directive @strQuoteRegex
_arrayIntersect
(#2735)_intSubstract
to _intSubtract
@intSubstract
to @intSubtract
polylangEnabledLanguages
to polylangLanguages
polylangLanguage
, polylangDefaultLanguage
and polylangLanguages
return type PolylangLanguage
instead of String
language
to languageBy
and polylangLanguage
to polylangLanguageBy
_arrayIntersect
siteURL
field (#2697)_strRegexFindMatches
(#2708)$translateFromLanguage
, $includeLanguagesToTranslate
and $excludeLanguagesToTranslate
to persisted queries (#2694 / #2700):IntValueJSONObject
(#2703)IDValueJSONObject
(#2704)valueWhenNonExistingKeyOrPath
to field _objectProperty
createMediaItem
when filename has more then one dot_strBase64Encode
(#2673)GenericCustomPost.update
, Root.updateCustomPost
and Root.createCustomPost
(#2663)GenericCategory.taxonomy
and GenericTag.taxonomy
(#2666)@export(as: $someVar)
(#2661)blocks
field to work with WordPress 6.5 (#2657)_arrayFlipToObject
and _objectIntersectKey
from the PHP Functions via Schema extension_arrayOfJSONObjectsExtractProperty
from the Helper Function Collection extensioncreateMediaItem
myMediaItemCount
, myMediaItems
and myMediaItem
_dataMatrixOutputAsCSV
from the Helper Function Collection extensionvalidateFieldArgValue
method receives extra argument $fieldArgs
GET
variables when executing Persisted Queries via POST
XML
scalar type_strDecodeXMLAsJSON
from the Helper Function Collection extension_strParseCSV
from the Helper Function Collection extensionfailIfNonExistingKeyOrPath: false
when selecting a block's attributes.{something}
property (as it may sometimes not be defined)any
to select the postreset
method was called on a non array)AnyStringScalar
wildcard scalar typeAnyScalar
_arrayGenerateAllCombinationsOfItems
from the "Helper Function Collection" extensionmysite.com
with the site domainoperationName
param can be obtained from the URL even when doing POST
String
in fields Root.optionValue
and WithMeta.metaValue