【发布时间】:2019-08-16 18:01:18
【问题描述】:
我是 GatsbyJs - GraphQL 的新手,我一直在探索 gatsby(https://github.com/gatsbyjs/gatsby/tree/master/examples/using-gatsby-source-graphql) 提供的示例,当我尝试使用本地 apollo-grapql 服务器时,它在前端返回数据,但是它抛出了上述错误并阻止构建过程,不确定我需要在这里传递的 typeName 到底是什么?任何帮助,这将不胜感激。
`gatsby-source-graphql`,
{
resolve: "gatsby-source-graphql",
options: {
// This type will contain remote schema Query type
typeName: "Query",
// This is field under which it's accessible
fieldName: "blah",
// Url to query from
url: "http://10.113.34.59:4000/graphql",
// this is URL where served exposed its service in local
},
【问题讨论】: