Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 680 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 680 Bytes

Gatsby 5 bug reproduction

GraphQL queries that sort using a field implemented as a resolver have caching issues.

  1. Start dev server npm run develop, open URL at http://localhost:8000/
  2. Notice that the videos are listed in the order defined in the ./content/videos-order.json file

  1. Edit the videos-order.json file to change the order. The order resolver returns the correct updated integer, yet the GraphQL query still sorts using the previous sorting order.

  1. Stop the dev server, run npm run clean, start dev server.
  2. The sort order will follow the videos-order.json order again as expected.