swapi-graphql
swapi-graphql copied to clipboard
Fixed caching logic to fetch all the necessary data
This PR updates the cacheResources function to improve the completeness and reliability of the resource caching process.
In addition to fetching the main resource lists (e.g., /people, /starships), the function now follows and caches each item's url to retrieve detailed data for every entry.
Thanks! Now I'll have to redo my conclusions in lab work!