How to define ObjectId type of dynamic object's fields in mongoose schema?

前端 未结 0 1517
轻奢々
轻奢々 2021-01-13 13:35

Current schema looks like:

const schema = new mongoose.Schema(
    filters: {
        type: Object,
        default: {}
    }
);

Sample Input

相关标签:
回答
  • 消灭零回复
提交回复
热议问题