Skip to main content

How to make updates to data and return list of updates without breaking Command query separation or [Resolved]

I have a use case to make updates to a slightly complex JSON object and then return the list of changes made (not the updated data). The process of finding the list of changes is extremely similar to the process of making the changes and it would bring in some redundancy if I chose to separate the two methods. So I'm wondering if there is a way to do this without choosing DRY over CQS and SRP.

Question Credit: Shreyas P Babu
Question Reference
Asked June 25, 2019
Posted Under: Programming
1 Answers

Your Answer