Skip to content

fturmel/gatsby-sort-resolver-bug

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published