The mongoose-id-validator allows for the vaidation of an array of ID references -- but it doesn't take into account the case where this array might be null -- i.e. if it is optional. I added a small fix for that scenario in order to make the code work for the application we are working on.
The mongoose-id-validator allows for the vaidation of an array of ID references -- but it doesn't take into account the case where this array might be null -- i.e. if it is optional. I added a small fix for that scenario in order to make the code work for the application we are working on.