I have a mongoose schema, that contains an array of objects and an array of strings. How to set validators in order to limit the number of items that can be inserted to 10 in these two cases?
todoList: [{ type: String }],
pictures: [{ type: String }],