GraphQL类型查询:出现错误“期望名称,找到字符串'type'”

时间:2019-12-03 15:33:10

标签: graphql hasura

我正在尝试使用Hasura GraphQL API创建对象关系。遵循文档https://docs.hasura.io/1.0/graphql/manual/api-reference/schema-metadata-api/relationship.html#create-object-relationship。这就是我所做的。

{
  "type": "create_object_relationship",
    "args": {
        "table": "article",
        "name": "article_detail",
        "using": {
            "manual_configuration" : {
                "remote_table" : "article_detail",
                "column_mapping" : {
                    "id" : "article_id"
                }
            }
        }
    }
}

我收到语法错误“预期名称,找到了字符串'type'”

需要帮助我做错了什么吗?

0 个答案:

没有答案