GraphQL queries that sort using a field implemented as a resolver have caching issues.
- Start dev server
npm run develop
, open URL athttp://localhost:8000/
- Notice that the videos are listed in the order defined in the
./content/videos-order.json
file
- Edit the
videos-order.json
file to change the order. Theorder
resolver returns the correct updated integer, yet the GraphQL query still sorts using the previous sorting order.
- Stop the dev server, run
npm run clean
, start dev server. - The sort order will follow the
videos-order.json
order again as expected.