BitBagCommerce / SyliusVueStorefront2Plugin

SyliusVueStorefront2Plugin provides everything you need to integrate your Sylius back-end with Vue Storefront 2.
MIT License
24 stars 17 forks source link

Consider better CQS in mutations #17

Open Codeweld opened 3 years ago

Codeweld commented 3 years ago

When we change the system state, we shouldn't return anything. With the current implementation and usage of message handlers for GraphQL mutations, we need to return this object. We should consider using mutation resolvers, to not break CQS

_Originally posted by @Codeweld in https://github.com/BitBagCommerce/SyliusGraphQLPlugin/pull/14#discussion_r727623100_