【问题标题】:Keystonejs How to remove multiple document from collection?Keystonejs 如何从集合中删除多个文档?
【发布时间】:2016-11-29 15:24:37
【问题描述】:

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

试过keystone.list('students').find({'class':'id'}).remove().exec() 但它不起作用。我该怎么做呢?

【问题讨论】:

    标签: mongoose keystonejs


    【解决方案1】:

    你可以试试直接删除吗?

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

    });

    我家你会访问this post。或者可能,这个问题是重复的。

    【讨论】:

      猜你喜欢
      • 2014-07-28
      • 2017-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-11
      • 1970-01-01
      • 2022-11-29
      • 2021-11-14
      相关资源
      最近更新 更多