Learn how to manage API endpoints with tags
test/blocks/1.0.0
. We’ll show you how to create a tag and update it to point to another subgraph version.
Start by creating a tag and associating it with your subgraph
We’ve now created a new tag called "new". Now, our GraphQL endpoint can use the tag name "new".
You can now see the GraphQL link after tagging.
https://api.subgraph.ormilabs.com/api/public/{id}/subgraphs/test/blocks/{version}/gn
https://api.subgraph.ormilabs.com/api/public/{id}/subgraphs/test/blocks/{tag}/gn
test/blocks
to version 2.0.0
and want to start
querying it with your new
GraphQL endpoint. It’s as simple as creating the tag
again on the new version.
Now your queries will be routed to the 2.0.0
version of the subgraph seamlessly.