gpt4 book ai didi

react-apollo - 如何在prisma.yml 中设置 "cluster"属性

转载 作者:行者123 更新时间:2023-12-02 04:29:43 26 4
gpt4 key购买 nike

感谢您提前阅读我的问题。我刚开始使用graphql和prisma following this tutorial .

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

最佳答案

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

关于react-apollo - 如何在prisma.yml 中设置 "cluster"属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50060910/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com