📌  相关文章
📜  在 gatsby 中安装 apollo 客户端 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:51.703000             🧑  作者: Mango

代码示例1
$ 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'
      }
    }
  ]
};