问题描述
我在使用 Hasura 内置的 GrpahQL 操作用户界面时遇到了困难。所以我决定像以前一样使用 GrpahQL 游乐场。但是当我尝试访问确切的 graphql 端点时。在操场上出现错误。
Unexpected token p in JSON at position 4
我还在 HTTP 标头部分放置了我的 Hasura 管理员密码。
{
"x-hasura-admin-secret": "myadminsecretkey","content-type": "application/json"
}
解决方法
Hasura 服务的 GraphQL 端点将在 /v1/graphql
可用。
所以在你的情况下,它会是 http://localhost:9695/v1/graphql
。