Salmandabbakuti / graphql-yoga-response-caching

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

graphql-yoga-response-caching

Graphql Yoga Response Caching

npm install

npm run dev
Sample Queries
query {
  slow
}
Query with response caching

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}'

About

License:MIT License


Languages

Language:TypeScript 100.0%