正在运行
{
__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自省?
发布于 2018-09-18 00:05:28
您需要处于开发人员模式才能使用内省。
使用deploy:mode:set developer
https://stackoverflow.com/questions/52371032
复制相似问题