zngly / wp-graphql-acf-mutations
ACF Mutations for WP GraphQL
Installs: 1 332
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 4
Forks: 1
Open Issues: 9
Type:wordpress-plugin
Requires
- php: ^7.0 || ^8.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.4
- johnpbloch/wordpress: >=6.0
- phpunit/phpunit: ^9
- spatie/file-system-watcher: ^1.1
- vlucas/phpdotenv: ^5.4
- wordpress-plugin/advanced-custom-fields-pro: ^5.9
- wp-graphql/wp-graphql: ^1.8
- wp-graphql/wp-graphql-acf: ^0.5.3
- wp-graphql/wp-graphql-jwt-authentication: ^0.4.1
- wpackagist-theme/twentytwentytwo: *
README
Zngly - WpGraphql ACF Mutations (Beta)
Wordpress plugin which add mutations to ACF Fields
Note
This plugin is still in active development. It is currently being used internally at Zngly.
Install
https://packagist.org/packages/zngly/wp-graphql-acf-mutations
composer require zngly/wp-graphql-acf-mutations
Usage
Install and Activate plugin
Acf fields should show up in mutations
Specify Graphql Type
If an acf type needs a specific graphql type such as a custom enum then specify
"strict_graphql_type" => "MyCustomEnum"
in your acf config.
Limitations
- Currently the mutations will not be set for objects nested with more than one child deep.
- Do not name your acf fields the same name as any of the fields that already exist in the wpgrahql schema. E.g. status, author, id, databaseId...
Zip Install
- Download the Latest Release
- Extract the contents of the zip file into a folder
wp-graphql-acf-mutations
- Place the
wp-graphql-acf-mutations
folder in yourwp-content/plugins
folder - From
wp-content/plugins/wp-graphql-acf-mutations
directory runcomposer install:prod
- Activate the plugin
Dev Usage
-
clone the repository
-
make sure you have composer and npm installed on your system
-
make sure you have XAMPP or something similar installed on your system
-
this will install wordpress along with the plugin
-
composer install:dev
-
composer watch
-
goto your wordpress installation in your localhost browser
-
finish the wordpress installation