Skip to content

Commit

Permalink
fix(bug): Add optional chain for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Jun 14, 2022
1 parent 17d653f commit da0eaa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/lib/utils/transform-schema.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit da0eaa4

Please sign in to comment.