We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a mongoose model containing 2 properties Array of String and some others:
var Model = new Schema({ _id: {type: Number, required: true, unique: true}, name: {type: String, required: true}, oneList: [String], anotherList: [String] });
I create the model:
var model = new Model({ _id: 1, name: 'model', oneList: ['a', 'b'], anotherList: ['c', 'd'] })
but when I inspect the model all the list are undefined:
model._doc === { _id: 1, name: 'model', oneList: undefined, anotherList: undefined }
I tried some variations:
Even when I create an empty model:
var model = new Model({}) model._doc.oneList === undefined model._doc.anotherList === undefined
Context: The problem occurs on a docker container but not on my local machine
node: v4.4.7
mongoose: v4.6.0
stackoverflow
The text was updated successfully, but these errors were encountered:
There is a related issue #1335 (comment)
Sorry, something went wrong.
No branches or pull requests
I have a mongoose model containing 2 properties Array of String and some others:
I create the model:
but when I inspect the model all the list are undefined:
I tried some variations:
Even when I create an empty model:
Context:
The problem occurs on a docker container but not on my local machine
node: v4.4.7
mongoose: v4.6.0
stackoverflow
The text was updated successfully, but these errors were encountered: