{"record":{"id":"da957243d86d6ff0","repo":"hasura/graphql-engine","slug":"makefindrelationship-interpolatedquery-targets-no","errorCode":null,"errorMessage":"makeFindRelationship: interpolatedQuery targets not supported","messagePattern":"makeFindRelationship: interpolatedQuery targets not supported","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"dc-agents/reference/src/query.ts","lineNumber":641,"sourceCode":"              const relationship = r.relationships[relationshipName];\n              if (relationship) {\n                return relationship;\n              }\n            }\n          }\n          break;\n        case 'function':\n          if (r.type === 'function') {\n            if (nameEquals(r.source_function)(targetName.function)) {\n              const relationship = r.relationships[relationshipName];\n              if (relationship) {\n                return relationship;\n              }\n            }\n          }\n          break;\n        case 'interpolated':\n          throw new Error(\n            'makeFindRelationship: interpolatedQuery targets not supported',\n          );\n        default:\n          return unreachable(targetName['type']);\n      }\n    }\n    throw new Error(\n      `No relationship named ${relationshipName} found for ${targetName.type} ${prettyPrintTargetName(targetName)}`,\n    );\n  };\n\ntype ApplyRedaction = (\n  row: Record<string, RawScalarValue>,\n  redactionExpName: RedactionExpressionName | undefined,\n  scalarValue: RawScalarValue,\n) => RawScalarValue;\n\nconst noRedaction: ApplyRedaction = (_row, _redactionExpName, scalarValue) =>","sourceCodeStart":623,"sourceCodeEnd":659,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/dc-agents/reference/src/query.ts#L623-L659","documentation":"findRelationship walks schema targets to locate a relationship by name; when it encounters a target of type 'interpolated' it throws, because interpolated query targets are not supported by this reference implementation.","triggerScenarios":"Any query (exists expressions, order-by paths, etc.) that triggers findRelationship on a schema whose targets include { type: 'interpolated', ... } entries while resolving a relationship name.","commonSituations":"Using schemas authored for connectors with interpolated-query support against this reference agent; advanced NDC schemas using argument interpolation that the reference backend hasn't implemented.","solutions":["Remove or replace interpolated targets in the schema with table or query targets.","Use a connector backend that implements interpolated query targets if you need them.","Avoid query features (nested order_by / exists on related tables) that force relationship resolution over interpolated targets."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"const hasInterpolated = Object.values(schema.targets ?? {}).some((t: any) => t.type === 'interpolated');\nif (hasInterpolated) throw new Error('schema uses unsupported interpolated targets');","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Avoid schemas with interpolated targets when using the reference agent","Test relationship resolution against the schema early with a simple nested query"],"tags":["hasura","data-connector","relationship","unsupported-feature"],"backgroundTag":"unsupported-relationship-type","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}