> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/build/graphql.md).

# 在 Duaer 里用 GraphQL 请求接口

在 Duaer 里，GraphQL 默认 Authentication 是 None，HTTP Request Method 默认 POST。填 Endpoint 和 Query；响应默认按 JSON，写在 Response Data Property Name（默认 data）。
## 发一个简单查询

1. 搜索 GraphQL，接到上一个节点后面。
2. Authentication 保持 None，或改成 Basic Auth、Header Auth、OAuth2 等并选凭据。
3. HTTP Request Method 保持 POST。Endpoint 填 GraphQL 地址。
4. Query 填查询字符串。需要变量时填 Variables。
5. 点执行此步骤。结果在输出的 data 字段（可改 Response Data Property Name）。

Request Format 按节点版本可能是 GraphQL 或 JSON。Response Format 默认 JSON，也可选 String。

更通用的 HTTP 调用见 [在 Duaer 里用 HTTP Request 调接口](/zh/build/http-request.md)。
## Questions

### Duaer 的 GraphQL 必须用 POST 吗？

默认是 POST。HTTP Request Method 也可以改成 GET。

