Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to give custom name to collection in mongoose

const dataSchema = new Schema({..}, { collection: 'data' });
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #give #custom #collection #mongoose
ADD COMMENT
Topic
Name
8+8 =