Answer the question
In order to leave comments, you need to log in
How to create n number of keys in mongoose schema?
Hello everyone, how do I generate n number of keys in a mongoose schema?
const PostLikeSchema = new Schema({
userId: {type: String},
key1: {type: Array},
key2: {type: Array},
key3: {type: Array},
key4: {type: Array},
more key....
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question