Created
February 10, 2020 09:25
-
-
Save dimuthu/405796247326597fd418fb70cd7a3292 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongo = require('mongoose'); | |
const Schema = mongo.Schema; | |
const todoSchema = new Schema({ | |
title: String, | |
completed: Boolean, | |
}); | |
module.exports = mongo.model('Todo', todoSchema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment