Can anyone please tell me what is the difference between:
aws-sdk/clients/appsync, and aws-appsync
According to the doc, aws-sdk/clients/appsync is used because just including aws-sdk is too large when we just need appsync, we use aws-sdk/clients/appsync.
However, aws-appsync seems also doing the same thing. When I create a client using aws-sdk/clients/appsync, there is no hydrated() function while aws-appsync has.
So
- Why can't we simplify everything by just using
aws-sdk/clients/<any_aws_package>and break everything that did not use it? - What is the point of separating something that is similar?
Thank you very much in advance for all your help.