【问题标题】:data saving in new collection is not working using mongoose-multi and gridfs stream?使用 mongoose-multi 和 gridfs 流在新集合中保存数据不起作用?
【发布时间】:2021-01-30 23:06:57
【问题描述】:

这里不可能分享所有代码,但我给你一个提示。 我在 Schema 文件中添加了我的新集合的模式,该文件有两个对象全局和本地。 global 和 local 是我们的两个数据库。

我的问题是我需要做其他任务吗,使用多 MongoDB。 这个项目也使用了的gridfs steram。

【问题讨论】:

    标签: mongoose node.js mongodb mongoose gridfs-stream


    【解决方案1】:

    其实只是一个小错别字。因此,模型是由 mongoose-multi 生成的,它使用 mongoose 模式作为模型的名称,并带有一个额外的“s”。所以用户变成了用户。我知道这是个愚蠢的问题,但很容易忘记。

    【讨论】:

      猜你喜欢
      • 2011-11-07
      • 1970-01-01
      • 2020-01-19
      • 2015-03-17
      • 2015-11-22
      • 1970-01-01
      • 2013-12-29
      • 2013-10-27
      • 1970-01-01
      相关资源
      最近更新 更多