The Graph.

Bài viết

Chia sẻ kiến thức của bạn.

TheGraph Mod QST.
Mar 30, 2024
Hỏi đáp Chuyên Gia

How to Add Contracts to a Subgraph without Redeployment?

I have a subgraph that indexes multiple contracts, and I'm wondering if there is a way to re-index a specific contract with an updated mapping without the need to redeploy the entire subgraph. Additionally, I'm curious if it's possible to add a new contract to the subgraph without going through a full redeployment process. Any insights or suggestions would be greatly appreciated. Thank you!

  • The Graph
  • GraphQL
  • Indexers
  • Subgraph
0
1
Chia sẻ
Bình luận
.

Câu trả lời

1
TheGraph Mod ANS.
Mar 30 2024, 00:26

You may want to consider exploring the concept of grafting in the context of creating a subgraph. Grafting allows you to build upon existing subgraphs, enhancing their functionality and extending their capabilities.

To delve deeper into this topic, you can refer to the official documentation provided by The Graph platform. The documentation offers detailed insights and instructions on how to effectively implement grafting onto existing subgraphs.

Here is the link to the relevant section in the documentation: Grafting onto Existing Subgraphs

By following the guidelines outlined in the documentation, you will be able to leverage grafting to seamlessly integrate your desired modifications and additions into an existing subgraph. This approach can significantly streamline your development process and enable you to build upon the work of others in a collaborative manner.

0
Câu trả lời chính thức
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

The Graph is a decentralized protocol for indexing and querying blockchain data. The Graph makes it possible to query data that is difficult to query directly.

259Bài viết258Câu trả lời
Sui.X.Peera.

Kiếm phần của bạn từ 1000 Sui

Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.