I am fairly new to GraphQL and have been using AWS AppSync service for GraphQL APIs. I use AWS Cognito for authentication/authorization, some Lambda functions and also have serverless RDS instance that is connected to my API. My question is:
How can I or is there a way to migrate from AppSync to Apollo GraphQL implementation in Javascript with least amount of rewriting the code and keeping the data sources as they are?
Reasons:
- No support for versioning in AppSync. I am unable to find way to revert back to an old version of my API. Currently, I backup my API by downloading the schema.json from AppSync and backup all my resolvers in a text file.
- If code gets bigger, browser gets unresponsive and takes good amount of time to load for the first time.
- Helper functions in $util serves great but at some points, I find it lacking somethings that I want to do differently. To work around this, I use Lambda functions. Therefore, no support for adding custom modules or libraries in AppSync.
- Sometimes, testing and debugging a resolver can be really frustrating. I am used to print on console and I find it really helpful.
Any help would be much appreciated.