diff --git a/internals-js/src/federation.ts b/internals-js/src/federation.ts index 42f7b6dbd..8f2c41b44 100644 --- a/internals-js/src/federation.ts +++ b/internals-js/src/federation.ts @@ -1952,8 +1952,8 @@ export function buildSubgraph( let subgraph: Subgraph; try { const schema = typeof source === 'string' - ? buildSchema(new Source(source, name), buildOptions) - : buildSchemaFromAST(source, buildOptions) + ? buildSchema(new Source(source, name), buildOptions) + : buildSchemaFromAST(source, buildOptions) subgraph = new Subgraph(name, url, schema); } catch (e) { if (e instanceof GraphQLError && name !== FEDERATION_UNNAMED_SUBGRAPH_NAME) {