Last active
December 8, 2020 04:23
-
-
Save eduardopc/a7f26063a5a1095a76aab46347cfcf73 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 } from "graphql-yoga"; | |
import { resolvers, typeDefs } from './animals'; | |
const server = new GraphQLServer({ typeDefs, resolvers }); | |
server.start(() => { | |
console.log( | |
`Server is running at http://localhost:4000` | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment