✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
MongoDB
Схема має maxlength: 200 для поля title. При створенні через create() з довжиною 500 символів валідація спрацьовує. Але findByIdAndUpdate(id, { title: 'a'.repeat(500) }) мовчки зберігає такий заголовок. Чому?