GraphQL#
GraphQL 是一个开源的数据查询和操作语言,用于 API,并且是一个用于使用现有数据执行查询的运行时。使用 GraphQL 节点来查询 GraphQL 端点。
节点参数(Node parameters)#
This node can be used as an AI tool
This node can be used to enhance the capabilities of an AI agent. When used in this way, many parameters can be set automatically, or with information directed by AI - find out more in the AI tool parameters documentation.
验证(Authentication)#
选择要使用的身份验证类型。
🌐 Select the type of authentication to use.
如果你选择任何除了 无 之外的选项,
HTTP 请求方法(HTTP Request Method)#
选择节点应使用的底层 HTTP 请求方法。可从以下选项中选择:
🌐 Select the underlying HTTP Request method the node should use. Choose from:
- 获取
- POST:如果你选择此方法,你还需要选择节点在查询有效负载中应使用的请求格式。可供选择:
- GraphQL(原始)
- JSON
端点(Endpoint)#
输入你要访问的 GraphQL 端点。
🌐 Enter the GraphQL Endpoint you'd like to hit.
忽略 SSL 问题(Ignore SSL Issues)#
当你启用此控件时,n8n 会忽略 SSL 证书验证失败。
🌐 When you turn on this control, n8n ignores SSL certificate validation failure.
查询(Query)#
输入你要执行的 GraphQL 查询。
🌐 Enter the GraphQL query you want to execute.
请参阅 相关资源 以获取有关编写查询的信息。
🌐 Refer to Related Resources for information on writing your query.
响应格式(Response Format)#
选择你希望接收查询结果的格式。可选择以下选项:
🌐 Select the format you'd like to receive query results in. Choose between:
- JSON
- 字符串:如果选择此格式,请输入响应数据属性名称以定义字符串写入的属性。
标头(Headers)#
输入你想作为查询一部分传递的任何 Headers,以 名称 / 值 对的形式。
🌐 Enter any Headers you want to pass as part of the query as Name / Value pairs.
模板和示例(Templates and examples)#
相关资源(Related resources)#
要使用 GraphQL 节点,你需要了解 GraphQL 查询语言。GraphQL 有自己的 GraphQL 入门 教程。
🌐 To use the GraphQL node, you need to understand GraphQL query language. GraphQL have their own Introduction to GraphQL tutorial.