silverstripe / silverstripe-graphql

Serves Silverstripe data as GraphQL representations
BSD 3-Clause "New" or "Revised" License
52 stars 61 forks source link

Form submissions through GraphQL #17

Open wilr opened 7 years ago

wilr commented 7 years ago

As a developer, I want form submissions to go through GraphQL, so I can have a consistent API.

Tasks

Related

Assumptions

wilr commented 7 years ago

Started work for this in https://github.com/silverstripe/silverstripe-graphql/compare/features/11-form-submission-api. Blocked based on Framework updates now.

wilr commented 7 years ago

See RFC 19 (https://github.com/silverstripe/silverstripe-framework/issues/6362) for the required precursor to this work.

chillu commented 7 years ago

We've decided to put this work on hold for now - the first step is the Update models after GraphQL submissions work, which would allow any XHR submission to influence Apollo model caching and make actual GraphQL form submissions less of a priority.

Form submissions through GraphQL will make a lot more sense once we can (optionally) bind PHP forms to models, and return GraphQL types rather than just generic key/value form submission results.

chillu commented 7 years ago

Updated title from "Asset Details Form submits Through GraphQL" to "Form submissions to GraphQL" (which was its original title), basically making this a generic card again. Once we get around to it, we might make the "asset details form" the first implementation, but it doesn't change the underlying work involved.

palomamtnez commented 1 year ago

Was there any conclusion about this? I mean, a way to do form submissions through GraphQL?

RileyManda commented 8 months ago

Was there any conclusion about this? I mean, a way to do form submissions through GraphQL?

Also waiting for the update on this.