Answer the question
In order to leave comments, you need to log in
What's the difference between models in mongoose and collections in mongoDB console?
My example uses mongoose and I create a new schema:
var blogSchema = new Schema({
title: String,
date: { type: Date, default: Date.now },
});
var Blog = mongoose.model('Blog', blogSchema);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question