{"record":{"id":"b9c42840d021fe63","repo":"hasura/graphql-engine","slug":"scalar-type-representation-required-for-type-scal","errorCode":null,"errorMessage":"scalar type representation required for type {scalar_type:} in data connector {data_connector:}","messagePattern":"scalar type representation required for type (.+?) in data connector (.+?)","errorType":"validation","errorClass":"ScalarBooleanExpressionTypeError","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/scalar_boolean_expressions/error.rs","lineNumber":41,"sourceCode":"        scalar_type: DataConnectorScalarType,\n    },\n    #[error(\n        \"cannot find type {custom_type:} when resolving arguments for comparison operator {operator_name:} for {boolean_expression_type:}\"\n    )]\n    UnknownCustomTypeInComparisonOperatorArgument {\n        custom_type: Qualified<CustomTypeName>,\n        operator_name: OperatorName,\n        boolean_expression_type: Qualified<CustomTypeName>,\n    },\n    #[error(\"data connector {data_connector:} could not be found\")]\n    DataConnectorNotFound {\n        data_connector: Qualified<DataConnectorName>,\n    },\n    #[error(\"scalar representations for data connector {data_connector:} could not be found\")]\n    DataConnectorScalarRepresentationsNotFound {\n        data_connector: Qualified<DataConnectorName>,\n    },\n    #[error(\n        \"scalar type representation required for type {scalar_type:} in data connector {data_connector:}\"\n    )]\n    DataConnectorScalarRepresentationRequired {\n        data_connector: Qualified<DataConnectorName>,\n        scalar_type: DataConnectorScalarType,\n    },\n    #[error(\"Predicate types in data connectors are unsupported\")]\n    PredicateTypesUnsupported,\n    #[error(\"{0}\")]\n    GraphqlError(#[from] graphql_config::GraphqlConfigError),\n}\n\nimpl ContextualError for ScalarBooleanExpressionTypeError {\n    fn create_error_context(&self) -> Option<error_context::Context> {\n        None\n    }\n}\n","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/scalar_boolean_expressions/error.rs#L23-L59","documentation":"A boolean expression operator requires a specific scalar type representation from the data connector (e.g. for equality/comparison arguments), but that scalar type is absent from the connector's scalar representations.","triggerScenarios":"An operator on a boolean expression type is used against a scalar whose DataConnectorScalarType is not present in the connector's reported scalar type representations.","commonSituations":"Connector does not support the scalar type used by the operator (e.g. a custom scalar), capabilities out of date after the connector added new types, or mapping an operator to a type the connector never exports.","solutions":["Confirm the connector actually supports the scalar type referenced by the operator","Refresh the connector's capabilities/schema so newly added scalar types appear","Remove or remap the operator to a supported scalar type"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// check required scalar type exists in connector representations\nlet scalars: HashSet<_> = caps.scalar_types.keys().cloned().collect();\nfor op in &required_operators {\n    if !scalars.contains(&op.scalar_type) { return Err(format!(\"missing scalar: {}\", op.scalar_type)); }\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep operator mappings limited to scalars the connector exports","Re-run connector schema introspection when connector types change"],"tags":["metadata","scalar-type","data-connector","boolean-expression"],"backgroundTag":"scalar-type-not-supported","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}