1.定义id

  1. const Schema=mongoose.Schema;
  2. var MovieSchema={
  3. _id:Schema.Types.ObjectId
  4. }