{"record":{"id":"bb6145a7f4146a64","repo":"hasura/graphql-engine","slug":"data-connector-does-not-support-queries","errorCode":null,"errorMessage":"data connector does not support queries","messagePattern":"data connector does not support queries","errorType":"validation","errorClass":"NDCValidationError","httpStatus":null,"severity":"error","filePath":"v3/crates/metadata-resolve/src/helpers/ndc_validation.rs","lineNumber":131,"sourceCode":"        field_name: FieldName,\n    },\n    #[error(\n        \"Result type of function/procedure {function_or_procedure_name:} is {function_or_procedure_output_type:} but output type of command {command_name:} is {command_output_type:}\"\n    )]\n    FuncProcAndCommandScalarOutputTypeMismatch {\n        function_or_procedure_name: String,\n        function_or_procedure_output_type: String,\n        command_name: String,\n        command_output_type: String,\n    },\n    #[error(\n        \"Custom result type of function {function_or_procedure_name:} does not match custom output type of command: {command_name:}\"\n    )]\n    FuncProcAndCommandCustomOutputTypeMismatch {\n        function_or_procedure_name: String,\n        command_name: String,\n    },\n    #[error(\"data connector does not support queries\")]\n    QueryCapabilityUnsupported,\n    #[error(\"data connector does not support mutations\")]\n    MutationCapabilityUnsupported,\n\n    // for `DataConnectorLink.argumentPresets` not all type representations are supported.\n    #[error(\n        \"Unsupported type representation {representation:} in scalar type {scalar_type:}, for argument preset name {argument_name:}. Only 'json' representation is supported.\"\n    )]\n    UnsupportedTypeInDataConnectorLinkArgumentPreset {\n        representation: String,\n        scalar_type: DataConnectorScalarType,\n        argument_name: open_dds::types::DataConnectorArgumentName,\n    },\n\n    #[error(\n        \"Argument '{argument_name:}' used in argument mapping for the field '{field_name:}' in object type '{object_type_name:}' is not defined in the data connector '{data_connector_name:}'.\"\n    )]\n    NoSuchArgumentInNDCArgumentMapping {","sourceCodeStart":113,"sourceCodeEnd":149,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/v3/crates/metadata-resolve/src/helpers/ndc_validation.rs#L113-L149","documentation":"A model or command routed to a data connector requires query capabilities that the connector does not report. Connectors advertise supported operations in their capabilities response; resolution fails early if queries are needed but unsupported.","triggerScenarios":"Attaching a model backed by a read-only-misconfigured connector that omits 'queries' from its capabilities; pointing metadata at a connector that only supports mutations/procedures.","commonSituations":"Using a minimal custom connector without query support; capabilities response changed after a connector upgrade; wrong connector URL wired in config.","solutions":["Verify the connector's /capabilities response includes queries","Upgrade or reconfigure the data connector to support queries","Route the model/command to a connector that supports queries, or remove the model"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"let caps = fetch_connector_capabilities().await?;\nif !caps.queries.supported { /* skip/redirect model before resolving */ }","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Check the connector capabilities response before attaching models"],"tags":["ndc","capabilities","query"],"backgroundTag":"connector-capability-unsupported","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}