📅  最后修改于: 2022-03-11 14:51:51.703000             🧑  作者: Mango
$ 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'
}
}
]
};