Last active
December 23, 2016 19:39
-
-
Save HERRKIN/0700a12c343c3fde433ffde8fcfecad3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createApolloServer } from 'meteor/orionsoft:apollo' | |
import { makeExecutableSchema } from 'graphql-tools' | |
import typeDefs from './schema' | |
import resolvers from './resolvers' | |
import cors from 'cors' | |
const schema = makeExecutableSchema({ | |
typeDefs, | |
resolvers | |
}) | |
createApolloServer({ | |
schema | |
}, { | |
configServer (graphQLServer) { | |
graphQLServer.use(cors()) | |
}, | |
graphiql: true | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment