1-1 定义_id

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