Last active
December 22, 2016 14:28
-
-
Save ianaya89/c77c418d2ba78f10e83d0e3263c8fb63 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 catSchema = mongoose.Schema({ | |
name: String | |
}); | |
const Cat = mongoose.model('Cat', catSchema); | |
Cat.find({}, (err, cats) => { | |
if (err) { return console.error(err); } | |
console.log(cats); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment