graphql - Prisma Playground 给出 token 无效错误

标签 graphql prisma prisma-graphql

当我尝试在浏览器中访问 Prisma Playground 时,出现以下错误。

{
  "errors": [
    {
      "message": " Your token is invalid. It might have expired or you might be using a token from a different project.",
      "code": 3015,
      "requestId": "api:api:cjfcbpal10t6w0b91idqif941"
    }
  ]
}

enter image description here

最佳答案

您需要使用以下命令生成 prisma token 并将其作为 Playground 中的授权 header 传递:

prisma token

enter image description here

关于graphql - Prisma Playground 给出 token 无效错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50262229/

相关文章:

node.js - 单一查询不会返回嵌套数组

c# - 通过 GraphQL 将任何 SQL Server 数据库变成可查询的

prisma - 如何使用 prisma 中的 where 子句对关系进行计数?

javascript - 如何避免实例化我的服务和存储库的每种方法

Prisma - 在运行 graphql 查询时获取未找到环境变量的错误消息

docker - 如何从Docker(Prisma)连接到主机数据库

graphql - 如何在无服务器生产中禁用 GraphQL Playground?

file-upload - 如何在 Jest 中模拟文件上传或文件对象?

python - 使用 Graphite 烯和 Python 的订阅类示例

prisma2 迁移错误 : There are more migrations in the database than locally