Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose schema

const mongoose = require("mongoose");
const { stringify } = require("querystring");
const { Schema } = mongoose;

const blogSchema = new Schema({
  title: String,
  metaDes: String,
  des: stringify,
});

module.exports = mongoose.model("posts", blogSchema);
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #mongoose #schema
ADD COMMENT
Topic
Name
5+9 =