Created
March 4, 2018 07:57
-
-
Save akoenig/a62ac6b9266e37cdfea15509e8a31d18 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 { GraphQLServer, Options } from "graphql-yoga"; | |
import { formatError } from "apollo-errors"; | |
const options: Options = { | |
formatError | |
}; | |
const server = new GraphQLServer({ typeDefs, resolvers }) | |
server.start(options, () => console.log('GraphQL API is running on localhost:4000')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment