graphqlgen icon indicating copy to clipboard operation
graphqlgen copied to clipboard

Diffing the resolvers to know which were updated from one scaffold to another

Open Weakky opened this issue 7 years ago • 0 comments

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.

sucess message

Flaws

  • Messages may become really long
  • Diff can become out of sync (by deleting the tmp folder for instance)

Weakky avatar Oct 18 '18 08:10 Weakky