Skip to content

Commit

Permalink
Renaming ApolloServerConfig to apolloServerConfig (#13)
Browse files Browse the repository at this point in the history
* fixing module path

* fix: renaming ApolloServerConfig to apolloServerConfig

Co-authored-by: Raoul Jaeckel <[email protected]>
  • Loading branch information
raoulus and Raoul Jaeckel authored Jun 18, 2020
1 parent b693e3f commit cdd6c42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions examples/advanced.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const gateway = require('../src/server')
const gateway = require('../index.js')

const resolvers = {
Order: {
Expand Down Expand Up @@ -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))
2 changes: 1 addition & 1 deletion examples/simple.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const gateway = require('../src/server')
const gateway = require('../index.js')

const config = {
port: 5000,
Expand Down

0 comments on commit cdd6c42

Please sign in to comment.