import mongoose from 'mongoose'; const { Schema } = mongoose; const BlogSchema = new Schema({ title: String, // String is shorthand for {type: String} author: String, body: String, isDone:Boolean }); export const Blog = mongoose.model('Todo', BlogSchema)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter