From 6199213f1d0575419073d9436e594e984e3616a7 Mon Sep 17 00:00:00 2001 From: Joshua Segaran Date: Tue, 19 Apr 2022 10:10:39 -0700 Subject: [PATCH] Update supergraphSDL to be a string --- docs/source/gateway.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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