UNPKG

570 BJavaScriptView Raw
1const server = require('./lib/graphql')
2
3// libs – exposed to avoid version discrepencies when creating schemas
4const fetch = require('node-fetch')
5const graphql = require('graphql')
6const graphqlTools = require('graphql-tools')
7const apolloLinkHttp = require('apollo-link-http')
8const apolloLinkContext = require('apollo-link-context')
9const apolloServerLambda = require('apollo-server-lambda')
10
11module.exports = {
12 GraphQL: {
13 server
14 },
15 lib: {
16 fetch,
17 graphql,
18 graphqlTools,
19 apolloLinkHttp,
20 apolloLinkContext,
21 apolloServerLambda
22 }
23}