diff --git a/demo/README.md b/demo/README.md index 093f587..61cf45f 100644 --- a/demo/README.md +++ b/demo/README.md @@ -57,3 +57,37 @@ # Get the deployment URL(s) laconic registry record list --all --type WatcherDeploymentRecord watcher $WATCHER_RECORD_ID | jq -r '.[].attributes.url' ``` + +* Query for `sushiswap-v3-subgraph` deployment(s): + + * Find the `SubgraphRecord` for `sushiswap-v3-subgraph`: + + ```bash + SUBGRAPH_RECORD_ID=$(laconic registry record list --all --type SubgraphRecord --name sushiswap-v3-subgraph | jq -r '.[].id') + ``` + + * Find corresponding deployment(s): + + ```bash + laconic registry record list --all --type SubgraphDeploymentRecord subgraph $SUBGRAPH_RECORD_ID + + # Get the deployment URL(s) + laconic registry record list --all --type SubgraphDeploymentRecord subgraph $SUBGRAPH_RECORD_ID | jq -r '.[].attributes.url' + ``` + +* Query for `geth-rpc` service deployment(s): + + * Find the `ServiceRecord` for `geth-rpc`: + + ```bash + SERVICE_RECORD_ID=$(laconic registry record list --all --type ServiceRecord --name geth-rpc | jq -r '.[].id') + ``` + + * Find corresponding deployment(s): + + ```bash + laconic registry record list --all --type ServiceDeploymentRecord service $SERVICE_RECORD_ID + + # Get the deployment URL(s) + laconic registry record list --all --type ServiceDeploymentRecord service $SERVICE_RECORD_ID | jq -r '.[].attributes.url' + ```