Answer the question
In order to leave comments, you need to log in
How to store the absence of a value in Monge if populations are used?
In the Mongoose model, one of the values looks like this
image: { type: mongoose.Schema.Types.ObjectId, ref: 'Image' }
null
, then I'm at a dead end on the front how to handle a bunch of conflicts (the data is used in SPA in a dozen components and knocks out an error on the client Cannot read property 'slug' of null
false
, then nothing flies from the API at all, an error likeCast to ObjectId failed for value \"false\" at path \"_id\" for model \"Image\"
undefined
, but I can't send it undefined
from the client - an object with this value is simply ignored and is not sent even by Ajax to the server. 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