Relay comes with a specification and a set of well define conventions for GraphQL Mutations. By following the conventions, we not only design Mutations in a way that they can be extended with easy, but also reduce a lot of cognitive overhead.
We can summarise the conventions into 5 rules:
createProduct
, introduceShip
, deleteCollection
.Input
postfix e.g. CreateProductInput
, IntroduceShipInput
.Payload
postfix e.g. CreateProductPayload
, IntroduceShipPayload
.