Skip to content

Commit 9fc23b5

Browse files
committed
node: fix deployment parsing in graphman index create
1 parent 9fdfdca commit 9fc23b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node/src/bin/manager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ pub enum IndexCommand {
698698
Create {
699699
/// The deployment (see `help info`).
700700
#[clap(value_parser = clap::builder::NonEmptyStringValueParser::new())]
701-
deployment: DeploymentSearch,
701+
deployment: String,
702702
/// The Entity name.
703703
///
704704
/// 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<()> {
15291529
method,
15301530
after,
15311531
} => {
1532+
let deployment = DeploymentSearch::from_str(&deployment)?;
15321533
commands::index::create(
15331534
subgraph_store,
15341535
primary_pool,

0 commit comments

Comments
 (0)