Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b38fe9

Browse files
committed
graphman: Fix build
1 parent 1a9f4a7 commit 8b38fe9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

node/src/manager/commands/query.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ use graph::{
55
data::query::QueryTarget,
66
prelude::{
77
anyhow::{self, anyhow},
8-
q, serde_json, GraphQlRunner as _, Query, QueryVariables, SubgraphDeploymentId,
9-
SubgraphName,
8+
q, serde_json, DeploymentHash, GraphQlRunner as _, Query, QueryVariables, SubgraphName,
109
},
1110
};
1211
use graph_graphql::prelude::GraphQlRunner;
@@ -21,8 +20,8 @@ pub async fn run(
2120
vars: Vec<String>,
2221
) -> Result<(), anyhow::Error> {
2322
let target = if target.starts_with("Qm") {
24-
let id = SubgraphDeploymentId::new(target)
25-
.map_err(|id| anyhow!("illegal deployment id `{}`", id))?;
23+
let id =
24+
DeploymentHash::new(target).map_err(|id| anyhow!("illegal deployment id `{}`", id))?;
2625
QueryTarget::Deployment(id)
2726
} else {
2827
let name = SubgraphName::new(target.clone())

0 commit comments

Comments
 (0)