-
“new Schema({ … }, { usePushEach: true });
This solves the error for me too” -
“isEmail function from the validator library takes 2 parameters, even though the second one is completely optional.
isEmail(str [, options])
You can prevent mongoose from seeing it by creating a function on top of it:validate: [{ validator: value => isEmail(value), msg: ‘Invalid email.’ }]”
-
“Alternatively, if this application is only installed for the current user, it would be more appropriate to put the .desktop file in ~/.local/share/applications”