first value of array when it reaches the limit and append the new value to the array?
Use pre-save hooks
Mongo has a way to do exactly that iirc, but I don't remember how it's named
Обсуждают сегодня