{"record":{"id":"9f392f7b769f2947","repo":"hasura/graphql-engine","slug":"the-argument-type-for-the-operator-operator-name","errorCode":null,"errorMessage":"the argument type for the operator '{operator_name}' in the boolean expression '{type_name}' is not compatible with the mapped operator's argument type defined in the data connector: {issue}","messagePattern":"the argument type for the operator '(.+?)' in the boolean expression '(.+?)' is not compatible with the mapped operator's argument type defined in the data connector: (.+?)","errorType":"validation","errorClass":"ScalarBooleanExpressionOperatorIssue","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/scalar_boolean_expressions/error.rs","lineNumber":155,"sourceCode":"    },\n    #[error(\n        \"the argument type '{argument_type}' for the operator '{operator_name}' in the boolean expression '{type_name}' should be a list\"\n    )]\n    ArgumentTypeShouldBeList {\n        type_name: Qualified<CustomTypeName>,\n        operator_name: OperatorName,\n        argument_type: QualifiedTypeReference,\n    },\n    #[error(\n        \"the argument type '{argument_type}' for the operator '{operator_name}' in the boolean expression '{type_name}' should match the scalar type '{scalar_type}'\"\n    )]\n    ArgumentTypeShouldMatchScalar {\n        type_name: Qualified<CustomTypeName>,\n        operator_name: OperatorName,\n        argument_type: QualifiedTypeReference,\n        scalar_type: QualifiedTypeName,\n    },\n    #[error(\n        \"the argument type for the operator '{operator_name}' in the boolean expression '{type_name}' is not compatible with the mapped operator's argument type defined in the data connector: {issue}\"\n    )]\n    ArgumentTypeMismatch {\n        type_name: Qualified<CustomTypeName>,\n        operator_name: OperatorName,\n        issue: type_validation::TypeCompatibilityIssue,\n    },\n    #[error(\n        \"the operator '{operator_name}' in the boolean expression '{type_name}' is only applicable on string scalars: {reason}\"\n    )]\n    OnlyApplicableOnStringScalar {\n        type_name: Qualified<CustomTypeName>,\n        operator_name: OperatorName,\n        reason: StringOperatorReason,\n    },\n}\n\nimpl ShouldBeAnError for ScalarBooleanExpressionOperatorIssue {","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/scalar_boolean_expressions/error.rs#L137-L173","documentation":"The operator's argument type is incompatible with the argument type declared by the mapped data connector operator, as determined by type validation (TypeCompatibilityIssue).","triggerScenarios":"Mapping an operator to a connector comparison operator whose operand type does not validate against the metadata-declared argument type (e.g. nullable vs non-nullable, or differing underlying scalar representations).","commonSituations":"Nullable mismatches between metadata argument types and connector operand types; connector expecting a different scalar representation than declared.","solutions":["Align the metadata argument type (nullability, underlying type) with the mapped connector operator's operand type","Inspect the nested TypeCompatibilityIssue message for the precise mismatch","Choose a different mapped operator whose operand type matches"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// run type validation before metadata apply\nmatch validate_compatibility(&argument_type, &connector_operand_type) {\n    Ok(_) => {},\n    Err(issue) => return Err(format!(\"argument incompatible: {}\", issue)),\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Match nullability and underlying scalar representation with the connector operand type"],"tags":["type-mismatch","data-connector","operator-mapping","metadata"],"backgroundTag":"argument-type-mismatch","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}