# GraphQL 数据源

## 新建**GraphQL** API

**新建数据源** -> **GraphQL API**，设置参数，如名称、GraphQL端点。

<figure><img src="/files/hLcQhGo84Fp4DXNVZzmT" alt=""><figcaption><p><strong>GraphQL</strong>数据源</p></figcaption></figure>

本质上GraphQL数据源将作为 子图 合并到Fireboom[超图](/v1.0/he-xin-gai-nian/chao-tu.md)中。

* 内省schema：默认选项，对于支持内省的GraphQL端点，飞布自动内省获得GraphQL Schema（子图），并以名称作为命名空间，合并到“[超图](/v1.0/he-xin-gai-nian/chao-tu.md)”中。
* 指定schema：对于不支持内省的GraphQL端点，需要取消勾选“复选框”，展开“指定Schema”选项，手动上传Schema文件

## 认证方式

参考 REST API [REST 数据源](/v1.0/ji-chu-ke-shi-hua-kai-fa/shu-ju-yuan/rest-api.md#ren-zheng-fang-shi)。

\\


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fireboom.io/v1.0/ji-chu-ke-shi-hua-kai-fa/shu-ju-yuan/graphql-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
