# 函数钩子

函数钩子是一种特殊的钩子，功能和 [graphql-gou-zi](https://docs.fireboom.io/jin-jie-gou-zi-ji-zhi/graphql-gou-zi "mention")类似，都用于自行定义业务逻辑。

但区别在于，graphql钩子本质上是graphql数据源，将被合并到超图中，然后基于构建的OPERATION，暴露到客户端。

<figure><img src="https://2707494476-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNx22Cp3wzkuW1siRbMwW%2Fuploads%2FtTuHmN1tECA0Nwi3jBU9%2Fimage.png?alt=media&#x26;token=3fc7647d-2fb9-4476-a743-ec1c7a58e55c" alt=""><figcaption></figcaption></figure>

而每个函数钩子都会按照规则，注册对应路由，直接暴露到客户端。


---

# 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/jin-jie-gou-zi-ji-zhi/han-shu-gou-zi.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.
