标签: mongoose mongoose-schema
我的架构
levels: { required: false, type: Array, 'default': [[], [], [], [], []] }
问题:它被识别为字符串。但我希望它是类型编号。
因此模型的有效示例是:
[[0,1,2], [3,4,5], [6,7,8], [9,0,1], [2,3,4]]
所以我的问题是:如何指定正确的类型?
我已经尝试了[[Number]]无效。
[[Number]]