- Issue created by @TheodorosPloumis
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
Hey, cool chat prompt!
I'm a "write as I think" kind of responder, so forgive me if I ramble.Mutations are a bit of a clean slate right now.
The comments mutation was a start at it, but it was just to compliment the comments module.I often found myself torn in two states of mind about starting any deeper integration.
Most of my use cases for writing content back to Drupal have been ad-hoc or really specific. The most useful one I can think of, which I haven't got here is webforms.
I've not yet felt the burning desire to go and create nodes and the node content ui in a headless ui.
If we were to address generic entity mutations, it would be pretty generic, and possibly limited by the nested complexity horrors of things like paragraphs.
Theres also the suggestion that you can just write your mutations in graphql without compose, and you can leverage the compose types for returning content.
I've got a sample module on a repo that I gave someone in Slack.
https://github.com/almunnings/drupal-graphql-sample-mutation
My personal opinion is yes to webforms, and yes to basic entity/fields, and "oh lordy" to extended contrib support.
Do we have any good examples of mutations for nested entity structures (like paragraphs) written by anyone else? Something we could leverage as best practice? I feel like I'd just wing it with some data producer mapped monster.
- πΊπΈUnited States jmolivas El Centro, CA
I kinda like the idea of mutations, this could be a separated submodule
graphql_compose_mutations
we definitely need to make sure we take care in a careful way to avoid the data producer monster. - π¬π·Greece TheodorosPloumis Greece
I do have a ready mutations module (with exactly that name) but I need some time to create the PR.
In fact, I do have many other submodules I created based on the graphql_compose module but need some work to make them at least ready for review. - πΊπΈUnited States jmolivas El Centro, CA
What other submodules and which features are you working on theodorosploumis?
- π¬π·Greece TheodorosPloumis Greece
Here are the modules we are working on. The most interesting are the debug, file_upload, mutations, logout, register, reset_password. The other ones are are self explained. They simply entity related with some minor customizations and extensions on fields.
- graphql_compose_activities
- graphql_compose_debug
- graphql_compose_files
- graphql_compose_file_upload
- graphql_compose_flaggings
- graphql_compose_logout
- graphql_compose_messages
- graphql_compose_mutations
- graphql_compose_posts
- graphql_compose_private_messages
- graphql_compose_profiles
- graphql_compose_register
- graphql_compose_reset_password - πΊπΈUnited States jmolivas El Centro, CA
@theodorosploumis Are any of those modules publicly published?
I am interested on the mutations module(s) my goal is to build a PoC adding https://puckeditor.com/ to the https://drupal-decoupled.octahedroid.com/ project?
- Merge request !102Initial commit on module for GraphQL compose mutations β (Open) created by TheodorosPloumis
- π¬π·Greece TheodorosPloumis Greece
It's not 100% ready but I will create a MR on this issue with what I have for Mutations up to now.
It misses testing and several meta files probably.