title: Movie is not a constructor - Mongoose
body: <p>I'm using the MEAN stack and trying to save data to my MongoDB database with Mongoose. However, I keep getting the error 
  "Movie is not a constructor" for my model. But this is how the Mongoose docs show it, so i'm not sure what i'm doing wrong..</p>
  
  <p>Please help!</p>
  
  <p><strong>Movie.js</strong></p>
  
  <pre><code>let mongoose = require('mongoose');
  
  let MovieSchema = new mongoose.Schema({
      title: String,
      genre: String
  });
  
  export let Movie = mongoose.model("Movie", MovieSchema);
  </code></pre>
  
  <p><strong>route.js</strong></p>
  
  <pre><code>import express = require('express');
  import mongoose = require('mongoose');
  let Movie = require('../models/Movie');
  let router = express.Router();
  
  router.post('/movies', function(req, res, next) {
    let new_movie = new Movie(req.body);
    new_movie.save(function(err, movie) {
      if(err) return next(err);
      res.send(movie);
    });
  });
  </code></pre>