Answers for "mongoose schema]"

Go
0

mongoose schema

// Define schema
var Schema = mongoose.Schema;

var SomeModelSchema = new Schema({
  a_string: String,
  a_date: Date
});

// Compile model from schema
var SomeModel = mongoose.model('SomeModel', SomeModelSchema );
Posted by: Guest on May-07-2021

Browse Popular Code Answers by Language