Skip to content

A UI for manually testing making GraphQL queries through apollo-client. We had caching concerns, and this was the easiest way to test them.

License

Notifications You must be signed in to change notification settings

djshapiro/apollo-react-client-cache-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Apollo's caching by hand

  • Run this repo with npm run dev.
  • Navigate to 'http://localhost:3000/query-tester'.
  • Click the buttons to fire different queries. Watch your network requests and redux dev tools to see what gets updated when.

How to make a new test case

  • Make a new file in src/components.
  • Add a button and a case in the render method of src/containers/QueryTester.jsx
  • Alter the schema and hardcoded resolvers in src/server/api/schema.js if you need to.

About

A UI for manually testing making GraphQL queries through apollo-client. We had caching concerns, and this was the easiest way to test them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •