Cache of previous search remains in new search

my page structure returns more stuff than just the entities, and when I was trying to loadMore, it doesn’t load any more items, figured I need to create a field policies to teach it how to merge, so I made one, and loadMore worked. my problem now is that when the search changes, it merge the result of the last search with the new one, and that’s not what I want, I want only the new search to appear.

my custom field policy Apollo cache for custom pagination · GitHub

I know “existing” is returning result of old search, but I don’t know how to validate if the search field has changed for return only new search