{"record":{"id":"72450bd86b040e34","repo":"hasura/graphql-engine","slug":"command-0","errorCode":null,"errorMessage":"command '{0}'","messagePattern":"command '(.+?)'","errorType":"validation","errorClass":"ArgumentSource","httpStatus":null,"severity":"info","filePath":"v3/crates/metadata-resolve/src/stages/arguments/types.rs","lineNumber":17,"sourceCode":"use std::collections::BTreeMap;\n\nuse crate::stages::boolean_expressions;\nuse crate::types::error::ContextualError;\nuse crate::types::subgraph::ArgumentKind;\nuse crate::{Qualified, QualifiedTypeReference};\nuse indexmap::IndexMap;\nuse open_dds::arguments::ArgumentName;\nuse open_dds::commands::CommandName;\nuse open_dds::models::ModelName;\nuse serde::{Deserialize, Serialize};\n\n#[derive(Debug, Clone, thiserror::Error, Eq, Ord, PartialEq, PartialOrd)]\npub enum ArgumentSource {\n    #[error(\"model '{0}'\")]\n    Model(Qualified<ModelName>),\n    #[error(\"command '{0}'\")]\n    Command(Qualified<CommandName>),\n}\n\npub struct ArgumentsOutput {\n    pub arguments: BTreeMap<ArgumentSource, IndexMap<ArgumentName, ArgumentInfo>>,\n    pub issues: Vec<ArgumentIssue>,\n}\n\n#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]\npub struct ArgumentInfo {\n    pub argument_type: QualifiedTypeReference,\n    pub description: Option<String>,\n    pub argument_kind: ArgumentKind,\n    pub type_representation: Option<ndc_models::TypeRepresentation>,\n}\n\n#[derive(Debug, Clone, thiserror::Error)]\npub enum ArgumentIssue {","sourceCodeStart":1,"sourceCodeEnd":35,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/arguments/types.rs#L1-L35","documentation":"Not a standalone error: it is the Display formatting for ArgumentSource::Command, rendering 'command '<name>''. It appears only as context inside larger error messages produced by the arguments resolution stage, identifying that the failing argument belongs to a command rather than a model.","triggerScenarios":"Surfaced when an argument defined on an OpenDD command has an issue (e.g. its boolean expression type fails to resolve) and the ArgumentSource is formatted into the error output.","commonSituations":"Command arguments whose argumentType references a broken boolean expression type; the prefix points you at the specific command in the metadata to fix.","solutions":["Read the rest of the error message: the actual failure is attached after 'command '...''","Fix the command's argument definition in its OpenDD YAML (usually the argumentType)","Rebuild and confirm the command resolves"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// Handle the wrapping error; use the 'command '...'' name to jump to the command's OpenDD definition and fix its argumentType.","preventionTips":["Read the full error line: the actionable failure follows the 'command '...'' prefix","Keep command argument types aligned with boolean expression type definitions"],"tags":["hasura","ddn","metadata","display-context","rust"],"backgroundTag":"metadata-validation-failed","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}