Skip to content

Commit

Permalink
Update supergraphSDL to be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
jsegaran authored Apr 19, 2022
1 parent 7331cbd commit 6199213
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/gateway.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6199213

Please sign in to comment.