Hacker News new | past | comments | ask | show | jobs | submit login

I like GraphQL a lot — but found that writing mutations involved a ton of boilerplate. For example, I'd have to keep writing the same key names over and over again. Anyone else experience this?

You could use input types and reduce the boilerplate to a single parameter, which you then send as an object in the request variables?

yeah that's what i did. inputs also help a bit with code reuse, imho.

Yes, Mutations are still annoying to write. Especially with all the optimisticResponses and pushing things into collections.

Registration is open for Startup School 2019. Classes start July 22nd.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact