【发布时间】:2018-09-17 15:21:21
【问题描述】:
跑步
{
__schema{
types{
name
kind
}
}
}
给了
{
"errors": [
{
"message": "GraphQL introspection is not allowed, but the query contained __schema or __type",
"category": "graphql",
"locations": [
{
"line": 31,
"column": 3
}
]
}
]
}
我在 Windows 上使用 GraphiQL 到 Magento graphql 服务器。如果我使用 graphql-cli 在命令行上运行 graphql get-schema,我也会得到相同的结果。如何允许 Graphql 自省?
【问题讨论】: