Answers for "apollo client install in gatsby"

3

apollo client install in gatsby

$ npm install gatsby-plugin-apollo @apollo/client

# yarn
$ yarn add gatsby-plugin-apollo @apollo/client

# gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-plugin-apollo',
      options: {
        uri: 'https://example.com/graphql'
      }
    }
  ]
};
Posted by: Guest on August-31-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language