This document explains how to coordinate an apiVersion upgrade
across all impacted projects:
graph-nodegraph-tsgraph-cligraph-docs
Those steps should be taken after all relevant graph-node changes
have been rolled out to production (hosted-service):
-
Update the default value of the
GRAPH_MAX_API_VERSIONenvironment variable, currently located at this file:graph/src/data/subgraph/mod.rs. If you're setting it up somewhere manually, you should change there as well, or just remove it. -
Update
graph-nodeminor version and create a new release. -
Update
graph-tsversion and create a new release. -
For
graph-cli:- Write migrations for the new
apiVersion. - Update the version restriction on the
buildanddeploycommands to match the newgraph-tsandapiVersionversions. - Update the
graph-cliversion inpackage.json. - Update
graph-tsandgraph-cliversion numbers on scaffolded code and examples. - Recompile all the examples by running
=$ npm installinside each example directory. - Update
graph-cli's version and create a new release. - Release in NPM
- Write migrations for the new
-
Update
graph-docswith the newapiVersioncontent.