Skip to content

Instantly share code, notes, and snippets.

@teyyihan
Created June 15, 2020 13:36
Show Gist options
  • Save teyyihan/3568dd8301e237e122d9766e1dcf2afb to your computer and use it in GitHub Desktop.
Save teyyihan/3568dd8301e237e122d9766e1dcf2afb to your computer and use it in GitHub Desktop.
const mongoose = require('mongoose')
const UserSchema = mongoose.Schema({
_id: String,
name: String,
age: Number
})
module.exports = mongoose.model('Users',UserSchema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment