The Graph.

Publicación

Comparte tu conocimiento.

TheGraph Mod QST.
Mar 30, 2024
P&R expertos

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
Cuota
Comentarios
.

Respuestas

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
Respuesta Oficial
Comentarios
.

Sabes la respuesta?

Inicie sesión y compártalo.

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.

259Publicaciones258Respuestas
Sui.X.Peera.

Gana tu parte de 1000 Sui

Gana puntos de reputación y obtén recompensas por ayudar a crecer a la comunidad de Sui.