【发布时间】:2020-01-22 03:17:07
【问题描述】:
我正在学习 GraphQL,即将完成教程,这在以前从未发生过。
问题是 GraphQL 服务器在浏览器中打开 GraphQL Playground 后一直在接收请求,即使没有进行查询或更改。
我看到服务器返回了这些类型的响应:
{
"name":"deprecated",
"description":"Marks an element of a GraphQL schema as no longer supported.",
"locations":[
"FIELD_DEFINITION",
"ENUM_VALUE"
],
"args":[
{
"name":"reason",
"description":"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",
"type":{
"kind":"SCALAR",
"name":"String",
"ofType":null
},
"defaultValue":"\"No longer supported\""
}
]
}
【问题讨论】:
标签: javascript node.js typescript graphql apollo