graphqlgen
graphqlgen copied to clipboard
Diffing the resolvers to know which were updated from one scaffold to another
Description
When scaffolding resolvers, there's no indication at all regarding which file/resolvers were updated. Users have to dig themselves into the files to find out.
Proposal
Step 1: When scaffolding resolvers, copy/paste the old resolvers into a temporary folder
Step 2: Make a diff between the old and the new resolvers, probably using git diff.
Step 3: Parse that diff to provide a clean and helpful message.
Flaws
- Messages may become really long
- Diff can become out of sync (by deleting the tmp folder for instance)