full-stack-serverless-code icon indicating copy to clipboard operation
full-stack-serverless-code copied to clipboard

For chapter 8 AWS AppSync inDepth why are we changing the auto generated queries

Open wispyco opened this issue 4 years ago • 1 comments

At the very end we modify the listStages query this is a auto generated file, If I go an update my schema wont our changes get overwritten. Is there anything I can do about this.?

wispyco avatar Dec 22 '20 15:12 wispyco

At the very end we modify the listStages query this is a auto-generated file, If I go and update my schema won't our changes get overwritten. Is there anything I can do about this.?

I was discussing this with one guy in Amplify discord and we ended up that the reason that it is not autogenerated might have something to do with the auto generator itself. So with nested structures, it doesn't end up in loops. This was just our guess and the guy, I was talking with said that it's better to write the queries manually anyway to get the data you need to avoid over-fetching.

Temez1 avatar Jan 18 '21 14:01 Temez1