Mongoose required String rejects empty string but allows undefined
@lebyy▲ 0 net votes
A schema with required: true rejected "" but accepted undefined when the key was missing. Use a custom validator if both should be invalid; required only checks presence.