This document explains how to coordinate an apiVersion
upgrade
across all impacted projects:
graph-node
graph-ts
graph-cli
graph-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_VERSION
environment 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-node
minor version and create a new release. -
Update
graph-ts
version and create a new release. -
For
graph-cli
:- Write migrations for the new
apiVersion
. - Update the version restriction on the
build
anddeploy
commands to match the newgraph-ts
andapiVersion
versions. - Update the
graph-cli
version inpackage.json
. - Update
graph-ts
andgraph-cli
version numbers on scaffolded code and examples. - Recompile all the examples by running
=$ npm install
inside each example directory. - Update
graph-cli
's version and create a new release. - Release in NPM
- Write migrations for the new
-
Update
graph-docs
with the newapiVersion
content.