Answer the question
In order to leave comments, you need to log in
How to make mongoDB not create empty fields by default?
Here is an example of such a scheme:
name: {
type: String,
required: true
},
questionType: {
type: String
},
cleanFields: [String],
field: {
type: String
},
requests: [
{
url: {
type: String
},
method: {
type: String
},
postData: {
type: Object
},
setResponseData: {
type: Object
}
}
],
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