Mongoose Keystonejs如何从集合中删除多个文档?

Mongoose Keystonejs如何从集合中删除多个文档?,mongoose,keystonejs,Mongoose,Keystonejs,我是keystonejs的新手。我的问题很笼统。如何从集合中删除多个文档 尝试了keystone.list('students')。查找({'class':'id'})。删除().exec(),但不起作用。我该怎么做呢?你能试着直接删除吗 keystone.list('students').remove({'class':'id'}, function(err){ if(err) throw err; })) 我知道你会去的家。或者,这个问题可能是重复的。你能试着直接删除吗

我是keystonejs的新手。我的问题很笼统。如何从集合中删除多个文档


尝试了
keystone.list('students')。查找({'class':'id'})。删除().exec()
,但不起作用。我该怎么做呢?

你能试着直接删除吗

  keystone.list('students').remove({'class':'id'}, function(err){
     if(err) throw err;
}))


我知道你会去的家。或者,这个问题可能是重复的。

你能试着直接删除吗

  keystone.list('students').remove({'class':'id'}, function(err){
     if(err) throw err;
}))

我知道你会去的家。或者,这个问题可能是重复的