diff --git a/packages/graphql/lib/utils/transform-schema.util.ts b/packages/graphql/lib/utils/transform-schema.util.ts index 5a267417d..9a350fcc2 100644 --- a/packages/graphql/lib/utils/transform-schema.util.ts +++ b/packages/graphql/lib/utils/transform-schema.util.ts @@ -102,7 +102,7 @@ export function transformSchema( fields: () => replaceFields(config.fields), }); - if (type.extensions.apollo?.subgraph?.resolveReference) { + if (type.extensions?.apollo?.subgraph?.resolveReference) { objectType.extensions = { ...objectType.extensions, apollo: {