Publication
Partagez vos connaissances.
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
Réponses
1You 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.
Connaissez-vous la réponse ?
Veuillez vous connecter et la partager.
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.
Gagne ta part de 1000 Sui
Gagne des points de réputation et obtiens des récompenses pour avoir aidé la communauté Sui à se développer.