Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to access a preexisting collection with Mongoose

new Schema({ url: String, text: String, id: Number}, 
       { collection : 'question' });   // collection name
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #access #preexisting #collection #Mongoose
ADD COMMENT
Topic
Name
5+1 =