1

我想用 json 对象数组进行批量插入。我相信支持使用猫鼬进行批量插入。如何使用 typegoose 进行批量插入?

这是我当前模型的选项:

const JobModel = new Job().getModelForClass(Job, {
  schemaOptions: {
    id: false,
    versionKey: false,
    timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' },
  },
});
4

0 回答 0