# 程序开发

本章将讲述子图（ subgraph） 相关的开发流程与开发方法。

主要分为两部分：

&#x20;     第一部分是控制台的使用和部署开发流程。

&#x20;    首先从实际业务流程的角度讲解了 HyperGraph 的工作原理。然后就结合 HyperGraph 控制台以及 graph-cli 等工具，讲解了怎么添加子图项目、生成子图脚手架、添加子图代码，部署到远程服务器，进行数据索引查询的过程。

&#x20;    第二部分是子图开发、AssemblyScript开发、GraphQL 查询语言编写的参考文档。


---

# 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.hg.network/product-chan-pin-bang-zhu/cheng-xu-kai-fa.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.
