Skip to content

Instantly share code, notes, and snippets.

@mohsen89z
Last active July 4, 2019 11:15
Show Gist options
  • Save mohsen89z/88c6eef36b59926971f69cee20c1543d to your computer and use it in GitHub Desktop.
Save mohsen89z/88c6eef36b59926971f69cee20c1543d to your computer and use it in GitHub Desktop.
Resolve .graphql import for medium
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