diff --git a/docs/source/gateway.mdx b/docs/source/gateway.mdx index ffe4bd5b4..7f4607732 100644 --- a/docs/source/gateway.mdx +++ b/docs/source/gateway.mdx @@ -25,8 +25,7 @@ const { ApolloServer, gql } = require('apollo-server'); const { ApolloGateway } = require('@apollo/gateway'); const { readFileSync } = require('fs'); -const schemaString = readFileSync('./supergraph.graphql').toString(); -const supergraphSdl = gql` ${schemaString} `; +const supergraphSdl = readFileSync('./supergraph.graphql').toString(); // Initialize an ApolloGateway instance and pass it // the supergraph schema