title: GraphQLError: Syntax Error: Cannot parse the unexpected character ";"
body: <p>I'm a beginner in GraphQL. While setting the server, connecting to mongodb database and doing a mutation, I'm getting following error after running <code>node index.js</code>.</p>
  
  <blockquote>
    <p>GraphQLError: Syntax Error: Cannot parse the unexpected character ";".</p>
  </blockquote>
  
  <p>Here's my index.js....</p>
  
  <pre><code>const { GraphQLServer } = require('graphql-yoga');
  const mongoose = require('mongoose');
  
  mongoose.connect('mongodb://localhost/todo');
  
  const Todo = mongoose.model('Todo',{
      text: String,
      complete: Boolean
  });
  
  const typeDefs = `
    type Query {
      hello(name: String): String!
    }
  
    type Todo{
      id: ID!
      text: String!
      complete: Boolean!
    }
  
    type Mutation{
      createTodo(text: String!): Todo;
    }
  ;
  
  const resolvers = {
    Query: {
      hello: (_, { name }) =&gt; `Hello ${name || 'World'}`,
    },
  
    Mutation: {
      createTodo: async (_, { text }) =&gt; {
          const todo = new Todo({ text, complete: false });
          await todo.save();
          return todo;
      }
    }
  };
  
  const server = new GraphQLServer({ typeDefs, resolvers });
  mongoose.connection.once('open', function() {
      server.start(() =&gt; console.log('Server is running on localhost:4000'))
    });
  </code></pre>
  
  <p>How to resolve this error!?</p>