Noticed that you have made protected route for Shopify Admin API in both graphql and rest, wondering how you will handle the caching at the backend? It seems that custom API routes can be cached by setting serverless.yml under cloudfront inputs as mentioned in serverless-next.
I am familiar with the monolith approach which is using koa custom server with apollo client created so I can use the handlers for API calls at the backend with caching(official shopify-app-node/server side apollo client), but Im not sure how its done in serverless.
Noticed that you have made protected route for Shopify Admin API in both graphql and rest, wondering how you will handle the caching at the backend? It seems that custom API routes can be cached by setting serverless.yml under cloudfront inputs as mentioned in serverless-next. I am familiar with the monolith approach which is using koa custom server with apollo client created so I can use the handlers for API calls at the backend with caching(official shopify-app-node/server side apollo client), but Im not sure how its done in serverless.