Apollo-client-preset - how to replace apollo-client-preset HttpLink with apollo/client 3 HttpLink

I have codebase which uses HttpLink from apollo-client-preset and also InMemoryCache, ApolloClient from apollo-client-preset. When I update the code to import ApolloClient, InMemoryCache and HttpLink from apollo/client. It is not working.