From cdd6c42fed8f7b1bdf3910b58c78c7772ba58dcc Mon Sep 17 00:00:00 2001 From: Raoul Jaeckel Date: Thu, 18 Jun 2020 11:39:17 +0200 Subject: [PATCH] Renaming ApolloServerConfig to apolloServerConfig (#13) * fixing module path * fix: renaming ApolloServerConfig to apolloServerConfig Co-authored-by: Raoul Jaeckel --- Readme.md | 4 ++-- examples/advanced.js | 6 +++--- examples/simple.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Readme.md b/Readme.md index dd5984a..d8abb10 100644 --- a/Readme.md +++ b/Readme.md @@ -85,9 +85,9 @@ const endpointsList = [ { name: 'pet_service', url: 'https://petstore.swagger.io/v2/swagger.json' } ] -const ApolloServerConfig = { playground: { endpoint: config.playgroundBasePath } } +const apolloServerConfig = { playground: { endpoint: config.playgroundBasePath } } -gateway({ resolvers, localSchema, endpointsList, ApolloServerConfig }) +gateway({ resolvers, localSchema, endpointsList, apolloServerConfig }) .then(server => server.listen(config.port)) .then(console.log(`Service is now running at port: ${config.port}`)) .catch(err => console.log(err)) diff --git a/examples/advanced.js b/examples/advanced.js index c6b30c8..ad55652 100644 --- a/examples/advanced.js +++ b/examples/advanced.js @@ -1,4 +1,4 @@ -const gateway = require('../src/server') +const gateway = require('../index.js') const resolvers = { Order: { @@ -34,9 +34,9 @@ const endpointsList = [ { name: 'pet_service', url: 'https://petstore.swagger.io/v2/swagger.json' } ] -const ApolloServerConfig = { playground: { endpoint: config.playgroundBasePath } } +const apolloServerConfig = { playground: { endpoint: config.playgroundBasePath } } -gateway({ resolvers, localSchema, endpointsList, ApolloServerConfig }) +gateway({ resolvers, localSchema, endpointsList, apolloServerConfig }) .then(server => server.listen(config.port)) .then(console.log(`Service is now running at port: ${config.port}`)) .catch(err => console.log(err)) diff --git a/examples/simple.js b/examples/simple.js index 9246cab..47f8f7c 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -1,4 +1,4 @@ -const gateway = require('../src/server') +const gateway = require('../index.js') const config = { port: 5000,