diff --git a/packages/graphql-server-express/src/connectApollo.ts b/packages/graphql-server-express/src/connectApollo.ts index 5e2a35cd4ae..14ad0b24d9c 100644 --- a/packages/graphql-server-express/src/connectApollo.ts +++ b/packages/graphql-server-express/src/connectApollo.ts @@ -1,6 +1,4 @@ import { apolloExpress, graphiqlExpress } from './expressApollo'; -const apolloConnect = apolloExpress; -const graphiqlConnect = graphiqlExpress; - -export { apolloConnect, graphiqlConnect }; +export const apolloConnect = apolloExpress; +export const graphiqlConnect = graphiqlExpress; diff --git a/packages/graphql-server-express/src/index.ts b/packages/graphql-server-express/src/index.ts index c56ccc6cf99..15dd9ea4ca0 100644 --- a/packages/graphql-server-express/src/index.ts +++ b/packages/graphql-server-express/src/index.ts @@ -1,2 +1,11 @@ -export { ExpressApolloOptionsFunction, ExpressHandler, apolloExpress, graphiqlExpress } from './expressApollo'; -export { apolloConnect, graphiqlConnect } from './connectApollo'; +export { + ExpressApolloOptionsFunction, + ExpressHandler, + apolloExpress, + graphiqlExpress, +} from './expressApollo'; + +export { + apolloConnect, + graphiqlConnect, +} from './connectApollo';