graphql-ruby-demo icon indicating copy to clipboard operation
graphql-ruby-demo copied to clipboard

Would love to see how mutations work

Open nickpoorman opened this issue 8 years ago • 4 comments

This documentation is great: https://rmosolgo.github.io/graphql-ruby/relay/mutations but I'd love to see how mutations should be done by looking in this demo app.

nickpoorman avatar Oct 29 '16 00:10 nickpoorman

Sorry, I didn't add anything right away because I didn't want to be responsible for public user input 😅

I'll try to add one here when I get a chance, or if you see a good way to add one without sending user-provided text back to other users, feel free to add one!

rmosolgo avatar Oct 31 '16 19:10 rmosolgo

We could add a "like" to a starwars object and store the result in the session of the user.

Willianvdv avatar Nov 02 '16 09:11 Willianvdv

I would think something as simple as mutating the user input and echoing it back to them in the response would be enough.

nickpoorman avatar Nov 05 '16 13:11 nickpoorman

Any chance we can get a mutation example soon? I'm trying to work through it and am having a difficult time getting one to work (specifically, without relay)

Oneill38 avatar Jan 22 '17 01:01 Oneill38