From 9fc23b59ec37d0b19f46db12316d85f173dafafd Mon Sep 17 00:00:00 2001 From: shiyasmohd Date: Mon, 13 Jan 2025 08:24:40 +0530 Subject: [PATCH] node: fix deployment parsing in graphman index create --- node/src/bin/manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/src/bin/manager.rs b/node/src/bin/manager.rs index 54752a3d25f..8fd5cc6d5fa 100644 --- a/node/src/bin/manager.rs +++ b/node/src/bin/manager.rs @@ -698,7 +698,7 @@ pub enum IndexCommand { Create { /// The deployment (see `help info`). #[clap(value_parser = clap::builder::NonEmptyStringValueParser::new())] - deployment: DeploymentSearch, + deployment: String, /// The Entity name. /// /// Can be expressed either in upper camel case (as its GraphQL definition) or in snake case @@ -1529,6 +1529,7 @@ async fn main() -> anyhow::Result<()> { method, after, } => { + let deployment = DeploymentSearch::from_str(&deployment)?; commands::index::create( subgraph_store, primary_pool,