How to make pagination on alternative arguments?

I have two arguments (skip and take) and they are different from standart “offset” and “limit”. How do I make scheme below work?

function App() {
  const { networkStatus, error, data, fetchMore } = useQuery(ALL_LINKS, { variables: { take: 30, skip: 0 } });
const cache = new InMemoryCache({
    typePolicies: {
        Query: {
            fields: {
                feed: offsetLimitPagination()
            }
        }
    }
});
export const ALL_LINKS = gql`
  query AllLinks ($skip: Int, $take: Int) {
   feed ( skip: $skip, take: $take ) {
      links {
        id
      }
    }
}`;

Custom name for arguments inside offsetLimitPagination([“skip”, “take”]) doesn`t work.

An empty array is returned to me.

Thanks for answer!

You’ll need to implement your own type policy. You can use the code for offsetLimitPagination as a reference: apollo-client/pagination.ts at main · apollographql/apollo-client · GitHub