DEV Community

Discussion on: Is GraphQL the future of APIs?

Collapse
 
negue profile image
negue

POST / PUT / DELETE actions are handled by mutations in GraphQL

there you can also (if you want) only pick your needed result values like:

"add a message, but only return the created ID" (or anything else you need)

Collapse
 
katylava profile image
katy lavallee • Edited

Yeah but they just seem way more complex with GraphQL. I would prefer doing "mutations" the RESTful way if I don't need that feature of only returning part of the response. But still keep GraphQL for the GET endpoint.

Thread Thread
 
yucer profile image
yucer

I think it does mean that the contracts are no so strict and have a dynamic part. Is it?