{"record":{"id":"1fa7ae0596c5b57c","repo":"hasura/graphql-engine","slug":"0-1fa7ae","errorCode":null,"errorMessage":"{0}","messagePattern":"\\{0\\}","errorType":"exception","errorClass":"ModelGraphqlError","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/models_graphql/error.rs","lineNumber":28,"sourceCode":"pub enum ModelGraphqlError {\n    #[error(\"unknown field {field_name:} in unique identifier defined for model {model_name:}\")]\n    UnknownFieldInUniqueIdentifier {\n        model_name: Qualified<ModelName>,\n        field_name: FieldName,\n    },\n    #[error(\"duplicate field {field_name:} in unique identifier defined for model {model_name:}\")]\n    DuplicateFieldInUniqueIdentifier {\n        model_name: Qualified<ModelName>,\n        field_name: FieldName,\n    },\n    #[error(\n        \"filter input type name graphql configuration must be specified for model {model_name:} because aggregates are used with it\"\n    )]\n    MissingFilterInputTypeNameGraphqlConfiguration { model_name: Qualified<ModelName> },\n\n    #[error(\"{0}\")]\n    GraphqlConfigError(#[from] graphql_config::GraphqlConfigError),\n    #[error(\"{0}\")]\n    ModelsError(#[from] models::ModelsError),\n    #[error(\"{0}\")]\n    BooleanExpressionError(#[from] boolean_expressions::BooleanExpressionError),\n}\n\nimpl ContextualError for ModelGraphqlError {\n    fn create_error_context(&self) -> Option<error_context::Context> {\n        match self {\n            Self::ModelsError(error) => error.create_error_context(),\n            Self::GraphqlConfigError(error) => error.create_error_context(),\n            Self::BooleanExpressionError(error) => error.create_error_context(),\n            _ => None,\n        }\n    }\n}\n","sourceCodeStart":10,"sourceCodeEnd":44,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/models_graphql/error.rs#L10-L44","documentation":"Transparent wrapper that propagates a GraphqlConfigError from the graphql_config stage when building the model GraphQL API; the message is the underlying error's text.","triggerScenarios":"Any invalid global or model-level GraphQL configuration, such as bad naming conventions or conflicting type names, surfaced while resolving model GraphQL.","commonSituations":"Invalid graphql_config metadata (e.g. invalid GraphQL names, conflicting prefixes) combined with models.","solutions":["Read the wrapped message to identify the GraphqlConfigError and fix that configuration","Validate the graphql_config block against the current schema"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"catch (e) { if (e.message.includes('graphql')) forwardToConfigDiagnostics(e); }","preventionTips":["Validate graphql_config blocks in CI"],"tags":["hasura","graphql","configuration","wrapper-error"],"backgroundTag":"graphql-config-invalid","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}