Skip to content

Commit da0eaa4

Browse files
committed
fix(bug): Add optional chain for extensions
1 parent 17d653f commit da0eaa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/graphql/lib/utils/transform-schema.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export function transformSchema(
102102
fields: () => replaceFields(config.fields),
103103
});
104104

105-
if (type.extensions.apollo?.subgraph?.resolveReference) {
105+
if (type.extensions?.apollo?.subgraph?.resolveReference) {
106106
objectType.extensions = {
107107
...objectType.extensions,
108108
apollo: {

0 commit comments

Comments
 (0)