MongoDB $set和$unset做什么的

2021-01-21 13:54:49

使用$unset去除属性price

2 db.runoob.update({"_id":"5e0da38b6c355e49d8002378"}, {$unset:{"price":0}}); 


 使用$set添加或者修改属性price

 db.runoob.update({"_id":"5e0da38b6c355e49d8002378"}, {$set:{"price":11.1}});

  • 2021-01-05 15:41:42

    nodejs修改时区

    ​let date = new Date(); date.setHours(date.getHours() + 8);

  • 2021-01-06 23:09:38

    mp3解码器转PCM合并

    首先,为了混合两个音频文件,您需要操纵它们的原始表示;由于MP3文件被压缩,您无法直接访问信号的原始表示.您需要对压缩的MP3流进行解码,以便“理解”您的音频信号的波形,然后可以混合使用.

  • 2021-01-08 16:47:37

    nodejs如何使用fetch

    node 中没有实现 fetch,你可以使用 node-fetch,使得在 node 中也可以使用 fetch.

  • 2021-01-08 16:49:59

    CommonJs 与 ESModule区别

    node中模块导入require是一个内置的函数,因此只有在运行后我们才可以得知模块导出内容,无法做静态分析