{"record":{"id":"c72030761cdd9f90","repo":"hasura/graphql-engine","slug":"the-operator-operator-name-is-mapped-to-mapp","errorCode":null,"errorMessage":"The operator '{operator_name}' is mapped to '{mapped_operator_name}' for the data connector '{data_connector_name}' in the boolean expression '{type_name}', but the mapped operator is not found in the data connector.","messagePattern":"The operator '(.+?)' is mapped to '(.+?)' for the data connector '(.+?)' in the boolean expression '(.+?)', but the mapped operator is not found 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":129,"sourceCode":"            }\n            | ScalarBooleanExpressionTypeIssue::MissingIsNullOperatorNameInGraphqlConfig {\n                ..\n            }\n            | ScalarBooleanExpressionTypeIssue::LogicalOperatorsUnavailable { .. } => false,\n            ScalarBooleanExpressionTypeIssue::GraphqlFieldNameConflict { .. }\n            | ScalarBooleanExpressionTypeIssue::DuplicateComparableOperatorFound { .. } => {\n                flags.contains(flags::Flag::DisallowDuplicateNamesInBooleanExpressions)\n            }\n            ScalarBooleanExpressionTypeIssue::OperatorIssue(issue) => {\n                issue.should_be_an_error(flags)\n            }\n        }\n    }\n}\n\n#[derive(Debug, thiserror::Error)]\npub enum ScalarBooleanExpressionOperatorIssue {\n    #[error(\n        \"The operator '{operator_name}' is mapped to '{mapped_operator_name}' for the data connector '{data_connector_name}' in the boolean expression '{type_name}', but the mapped operator is not found in the data connector.\"\n    )]\n    MappedOperatorNotFound {\n        type_name: Qualified<CustomTypeName>,\n        operator_name: OperatorName,\n        mapped_operator_name: ndc_models::ComparisonOperatorName,\n        data_connector_name: Qualified<DataConnectorName>,\n    },\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}'\"","sourceCodeStart":111,"sourceCodeEnd":147,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/scalar_boolean_expressions/error.rs#L111-L147","documentation":"An operator in the boolean expression type is mapped to a data connector comparison operator, but that mapped operator does not exist in the connector's reported capabilities.","triggerScenarios":"Setting an operator mapping (e.g. equal -> \"$eq\") for a data connector whose capabilities/schema does not list that comparison operator name.","commonSituations":"Typos in mapped operator names, connector version changes that renamed operators, or mappings written for a different connector dialect.","solutions":["Check the data connector's capabilities for the correct comparison operator name and fix the mapping","Update the connector so the operator exists","Remove the mapping if the connector provides a default for the operator"],"exampleFix":"// before\nmapped_operator_name: \"eq\"\n// after\nmapped_operator_name: \"$eq\"","handlingStrategy":"validation","validationCode":"// verify mapped operator exists in connector capabilities\nlet ops: HashSet<_> = connector_comparison_ops(&caps).collect();\nif !ops.contains(&mapped_operator_name) {\n    return Err(format!(\"mapped operator {} not in connector\", mapped_operator_name));\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Derive operator mappings from the connector's capabilities document rather than hand-writing them"],"tags":["data-connector","operator-mapping","boolean-expression","metadata"],"backgroundTag":"operator-mapping-invalid","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}