Custom Field Mutations #514
Replies: 1 comment 5 replies
-
Thank you for the suggestion, @ditto-vlad! Some good news — we haven't released it yet, but we recently merged support for ACM fields as input fields for mutations in this PR: Each field is registered as a separate input, consistent with existing WPGraphQL fields (rather than namespacing under an We plan to release this in our next update, likely this week or soon after. You'll then be able to follow the docs here to make mutations on ACM models with ACM fields: https://github.com/wpengine/atlas-content-modeler/blob/main/docs/mutations/index.md |
Beta Was this translation helpful? Give feedback.
-
As a developer, I would like to be able to have mutations for the custom fields that I set up. This would make it easier for me to create my model and avoid writing boilerplate code in order to get each field appear in the mutation.
Currently only standard WordPress fields appear as part of mutations.
The feature would have all (maybe enable mutation per field) fields to be mutated and appear in the mutation.
--- extra info
Having played with ACM and looking at the promising nature of its development, I believe that this missing feature is fundamental for developers making WordPress/Wpgraphql/Next websites and would also steer developers this way.
My own personal needs stem from using Wpgraphql with Wpgraphql-acf . I needed to make quite a few mutations happen for the acf fields. After the mutations were implemented, I then created a plugin for wpgraphql-acf-mutations which automatically created mutations for all (most of) the acf fields.
--- tips
While making the plugin, I realised that having inputTypes were important and should have aggregated all the custom fields into an InputType. This would have helped with a number of issues described there and leads me to think thats the cleanest way to implement the feature. zngly/wp-graphql-acf-mutations#1
The benefits are summarised below.
--- final note
This feature would allow me to start a new project using ACM and future developers to know they have the ability to fully control the data using graphql.
Beta Was this translation helpful? Give feedback.
All reactions