The Lambda resolver should handle the schema migration and the clean up and provide the data always in the same manner independent from how it is stored in DynamoDB. The API should stay stable. Otherwise it is very hard to keep the web app and the mobile app in sync in terms of the Amplify backend and the npm packages.
This article describes nicely how to involve a Lambda resolver in my model.
The Lambda resolver should handle the schema migration and the clean up and provide the data always in the same manner independent from how it is stored in DynamoDB. The API should stay stable. Otherwise it is very hard to keep the web app and the mobile app in sync in terms of the Amplify backend and the npm packages. This article describes nicely how to involve a Lambda resolver in my model.