How to declare 2D array in mongoose schema?

Viewed 1009

I am doing in this way but got exception of syntax error.

alerts:  [{ name: String, time: Number},'default',[][]]

How can I declare this 2D array with default of empty array?

0 Answers
Related