Skip to content
Snippets Groups Projects
Commit 70e26ac0 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

feat(*): remove config.apollo from configuration

BREAKING CHANGE:
drop extending apollo through config
parent c82b1da4
No related branches found
No related tags found
1 merge request!123v4
......@@ -16,8 +16,6 @@ const schema = require('./graphqlSchema')
const isDevelopment = process.env.NODE_ENV === 'development'
const extraApolloConfig = config.has('apollo') ? config.get('apollo') : {}
const createGraphQLServer = testUserContext => {
if (process.env.NODE_ENV !== 'test' && testUserContext) {
throw new Error(
......@@ -74,7 +72,6 @@ const createGraphQLServer = testUserContext => {
}
},
introspection: process.env.NODE_ENV === 'development',
...extraApolloConfig,
}
if (isDevelopment) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment