Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

schema mongoose

const fruitSchema = new mongoose.Schema ({
  name: {
    type: String
  },
  rating: {
    type: Number,
    min: 1,
    max: 10
  },
  review: String
});
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #schema #mongoose
ADD COMMENT
Topic
Name
1+1 =