Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add another model into type of model in mongodb schema

items : {
         type: [Schema.Types.ObjectId],
         ref: 'Item'
    }
 
PREVIOUS NEXT
Tagged: #add #model #type #model #mongodb #schema
ADD COMMENT
Topic
Name
5+3 =