Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get data from mongodb node js using mongoose

// Define schema
var Schema = mongoose.Schema;

var SomeModelSchema = new Schema({
  a_string: String,
  a_date: Date
});

// Compile model from schema
var SomeModel = mongoose.model('SomeModel', SomeModelSchema );
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #data #mongodb #node #js #mongoose
ADD COMMENT
Topic
Name
9+2 =