Open bhaireshm opened 3 years ago
How to generate the below case??
If i want to add reference to a column for eaxmple:
User = { name: String, email: String, address: { type : mongoose.Type.ObjectId, ref: "Address" } }
U use
address: { type : Schema.ObjectId, ref: "Address" }
How to generate the below case??
If i want to add reference to a column for eaxmple:
User = { name: String, email: String, address: { type : mongoose.Type.ObjectId, ref: "Address" } }