better to install apollo client or single packages code example
Example: apollo client install
npm install @apollo/client graphql
# yarn
yarn add @apollo/client graphql
npm install @apollo/client graphql
# yarn
yarn add @apollo/client graphql