Graphql Yoga Response Caching
npm install
npm run dev
query {
slow
}
Note: The first request will take 5 seconds, but the subsequent requests will be fast
curl -X POST -H 'Content-Type: application/json' http://localhost:4000 \
-d '{"query":"{slow}"}' -w '\nTotal time : %{time_total}'