5

我正在关注 https://www.graph.cool/docs/1.0/quickstart/backend/typescript/typescript-rohd6ipoo4以获取 graphcool 并且出现错误

{
 "errors": [
  {
  "code": 3016,
  "requestId": "api:api:cjc7gf91e002v0180uq2hqace",
  "message": "Project not found: 'my-app@dev'"
}]}

用于查询和变异。我是graphcool的新手,所以不知道为什么会这样。我正在按照上面链接中提供的步骤进行操作。

Graphql服务器:

const server = new GraphQLServer({
typeDefs: './src/schema.graphql',
resolvers,
context: req => ({
  ...req,
  db: new Graphcool({
  endpoint: 'http://localhost:60000/my-app/dev',
  secret: 'mysecret123',
    }),
  }),
})

$ graphcool info
Service Name: my-app

dev (cluster: `local`)

HTTP:       http://localhost:60000/my-app/dev
Websocket:  ws://localhost:60000/my-app/dev
4

0 回答 0