All tests / Hidden data
GraphQL reviews
What this tests. Fifty reviews from a GraphQL-style POST, ten at a time, with cursors. Render the page, or replay the request and follow endCursor.
The rule. The page posts JSON to /hidden/graphql/api: a query string and
variables of first (at most 10) and after, a cursor. Each answer ends
with pageInfo.endCursor and hasNextPage; send the cursor back as after until there's no
next page. That's 5 requests for all 50.
A GET gets a 405. A body that isn't JSON, or a cursor this API never handed out, gets a 400 with an errors array, the way GraphQL servers report trouble.
- Hard
- Needs JS
- Answer key
/hidden/graphql/answers.json
Reviews
Data version 1.0.0. Everything here is made up: products, brands, people, towns. tests.json · robots.txt · Source