Apollo Client cache

Hi everyone, please help me with the apollo client cache. The issue with pagination. The next page works perfectly, but the previous page button goes to the first page, not the previous one. Here is my code:

Hi @Paruyr_Yeprikyan :wave: welcome to the forum! I’d be happy to lend an extra set of eyes but I will need more information here. You referenced buttons and pagination but I don’t see any pagination logic or buttons in the screenshot you shared. Seeing more application code will help narrow down what the next step might be.