4

感谢您提前阅读我的问题。我只是按照本教程开始使用 graphql 和 prisma 。

出现以下错误时Deploying the Prisma database service

Error: No cluster set. Please set the "cluster" property in your prisma.yml
    at /Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/src/index.ts:89:11
    at step (/Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/dist/index.js:40:23)
    at Object.next (/Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/dist/index.js:21:53)
    at fulfilled (/Users/judy/howtographql/server/node_modules/graphql-config-extension-prisma/dist/index.js:12:58)
    at <anonymous>
error Command failed with exit code 1.
ERROR: "playground" exited with 1.
error Command failed with exit code 1.

我查看了教程,发现没有关于如何设置集群的内容。我想知道如何解决这个问题。

默认的 prisma.yaml 是:

# the name for the service (will be part of the service's HTTP endpoint)
service: hackernews-graphql-js

# the cluster and stage the service is deployed to
stage: dev

# to disable authentication:
# disableAuth: true
secret: mysecret123

# the file path pointing to your data model
datamodel: datamodel.graphql
4

1 回答 1

0

可能只是您输入了错误的端点地址。请参考https://github.com/prisma/graphql-config-extension-graphcool/issues/8

于 2019-03-06T13:57:30.150 回答