A focused comparison of REST APIs using API Gateway and GraphQL using AppSync on AWS, illustrated with a simple shopping example involving Users, ShoppingCarts, and Items.