Last active
July 4, 2019 11:15
-
-
Save mohsen89z/88c6eef36b59926971f69cee20c1543d to your computer and use it in GitHub Desktop.
Resolve .graphql import for medium
This file contains 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 { ApolloServer } from 'apollo-server' | |
import { resolvers } from './graphql/resolvers' | |
import typeDefs from './graphql/Query.graphql' | |
const server = new ApolloServer({ | |
typeDefs, | |
resolvers, | |
}) | |
server.listen().then(({ url }) => { | |
console.log(`🚀 Server ready at ${url}`); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment