{"record":{"id":"c84c90dac0399c8d","repo":"hasura/graphql-engine","slug":"field-level-comparison-operator-configuration-is-n-c84c90","errorCode":null,"errorMessage":"Field level comparison operator configuration is not fully supported yet. Please add all fields in filterable_fields.","messagePattern":"Field level comparison operator configuration is not fully supported yet\\. Please add all fields in filterable_fields\\.","errorType":"validation","errorClass":"BooleanExpressionError::FieldLevelComparisonOperatorNeedsAllFields","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/stages/boolean_expressions/error.rs","lineNumber":155,"sourceCode":"        field_type: QualifiedTypeName,\n        field_boolean_expression_type_name: BooleanExpressionTypeIdentifier,\n        underlying_type: QualifiedTypeName,\n    },\n\n    #[error(\n        \"Scalar representations for data connector '{data_connector_name}' could not found for boolean expression type {boolean_expression_type}\"\n    )]\n    DataConnectorScalarRepresentationsNotFound {\n        data_connector_name: Qualified<DataConnectorName>,\n        boolean_expression_type: Qualified<CustomTypeName>,\n    },\n\n    #[error(\n        \"Field level comparison operator configuration is not fully supported yet. Please use \\\"enableAll\\\":true.\"\n    )]\n    FieldLevelComparisonOperatorConfigurationNotSupported,\n\n    #[error(\n        \"Field level comparison operator configuration is not fully supported yet. Please add all fields in filterable_fields.\"\n    )]\n    FieldLevelComparisonOperatorNeedsAllFields,\n\n    #[error(\"a source must be defined for model {model:} in order to use filter expressions\")]\n    CannotUseFilterExpressionsWithoutSource { model: Qualified<ModelName> },\n\n    #[error(\n        \"Target model {model_name:} not found, referenced in relationship {relationship_name:}\"\n    )]\n    TargetModelNotFound {\n        relationship_name: RelationshipName,\n        model_name: Qualified<ModelName>,\n    },\n\n    #[error(\n        \"Model {model:} has source data connector {model_data_connector:} but its filter expression type {filter_expression_type:} is backed by data connector {filter_expression_data_connector:}\"\n    )]","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/stages/boolean_expressions/error.rs#L137-L173","documentation":"The boolean expression type restricts filterable fields via a filterable_fields-style configuration, but field-level selection of filterable fields is not fully supported; all fields must be included. Thrown when only a subset of fields is marked filterable.","triggerScenarios":"Providing a booleanExpressionType with a filterableFields list that omits some fields of the object type, instead of listing all fields.","commonSituations":"Attempting to hide certain fields from filtering by omitting them from filterable_fields; partial copy-paste of a filterable field list that misses fields added later.","solutions":["Add all fields of the object type to the filterable_fields list so it is exhaustive","Alternatively use operators enableAll and drop the field list"],"exampleFix":"// before\nfilterableFields: [id, name]\n// after (object type also has 'email')\nfilterableFields: [id, name, email]","handlingStrategy":"validation","validationCode":"const objFields = new Set(objectTypeFields(boolExpType.target));\nfor (const f of boolExpType.filterableFields ?? []) objFields.delete(f);\nif (objFields.size > 0) fail(`filterable_fields missing: ${[...objFields]}`);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["If listing filterable fields, always list every field of the object type","Prefer enableAll over partial field lists until support is complete"],"tags":["hasura","boolean-expression","filterable-fields","metadata-validation"],"backgroundTag":"schema-validation-failed","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}