1
必要な子どもたち、私は私のNAVスキーマで以下の目的を持っている:バッジは必須ではありませんがバッジが存在しない場合マングーススキーマ - ない親
const navItem = new Schema ({
"title": { type: string, unique: true, required: "A Title is req."},
.............
"badge": {
"label": "string",
"class": "string"
}
..............
})
、ラベルとクラスがあります。
どのように私はきちんと私のマングースのスキーマ内の任意のバッジのために、この要件を示したでしょうか?
はあなたに