Skip to content

Commit 32f672c

Browse files
authored
Merge pull request #785 from LimeChain/master
Local Graph node debug tool using a remote GraphQL endpoint (per LimeChain)
2 parents c84e287 + 2c75e9f commit 32f672c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/commands/deploy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Options:
3030
-l --version-label <label> Version label used for the deployment
3131
-h, --help Show usage information
3232
-i, --ipfs <node> Upload build results to an IPFS node (default: ${DEFAULT_IPFS_URL})
33+
--debug-fork ID of a remote subgraph whose store will be GraphQL queried
3334
-o, --output-dir <path> Output directory for build results (default: build/)
3435
--skip-migrations Skip subgraph migrations (default: false)
3536
-w, --watch Regenerate types when subgraph files change (default: false)
@@ -96,6 +97,7 @@ module.exports = {
9697
skipMigrations,
9798
w,
9899
watch,
100+
debugFork,
99101
} = toolbox.parameters.options
100102

101103
// Support both long and short option variants
@@ -264,7 +266,7 @@ module.exports = {
264266
// `Failed to deploy to Graph node ${requestUrl}`,
265267
client.request(
266268
'subgraph_deploy',
267-
{ name: subgraphName, ipfs_hash: ipfsHash, version_label: versionLabel },
269+
{ name: subgraphName, ipfs_hash: ipfsHash, version_label: versionLabel, debug_fork: debugFork },
268270
async (requestError, jsonRpcError, res) => {
269271
if (jsonRpcError) {
270272
spinner.fail(

0 commit comments

Comments
 (0)