The Graph.
Log in

Testing Before Publishing on Decentralized Network

Discussion
  • INDEXERS

What are capabilities when you have deployed to subgraph studio, but have not published yet. Is this stage similar to the hosted subgraph? Does it still sync new events? What are the best practices to test before you publish on decentralized network?

Add comment

Answers1

It is similar to the hosted service in that it is centralized and only 1 indexer can index your subgraph. The difference is that studio is rate limited. So you should test only studio before deploying to the network. In terms of testing best practices, I would suggest that you read the unit testing guide in the docs. Unit testing is locally isn't it? Using Matchsticks. By testing, I mean on studio. Unless we can unit test on studio as well. Oh, in that case you only really use studio to verify that the data you want is working properly as you expect it to. Just rate limited querying until you publish.

Add comment

Do you know the answer?

Please log in and share it.

Log in