腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
3
回答
MongooseError:文档在保存lib\model.js:297:18之前必须有一个processTicksAndRejections (节点: saving /process/task:78:11)
、
、
但是在我的节点中,app.js输出是: MongooseError: document在保存在processTicksAndRejections上的D:\node_modules\
mongoose
\lib这是我的代码: c
浏览 14
提问于2022-09-13
得票数 0
2
回答
InsertMany
不在mongodb中工作
、
我对
Mongoose
和MongoDB本身相当陌生,我正在尝试保存一堆通过
insertMany
方法插入的文档,但这并不是保存文档。这是我的代码:var
mongoose
= require('
mongoose
'); ExpressJS邮政线路 var
mongoose<
浏览 4
提问于2018-05-30
得票数 6
回答已采纳
1
回答
一次性存储Graph API中的所有项目
、
、
reportSchema var
mongoose
= require('
mongoose
') isRead: Boolean,String, receivedDateTime: Date,});
浏览 14
提问于2019-03-19
得票数 0
回答已采纳
1
回答
以编程方式在mongodb中插入JSON文件
、
我在数据库中创建了一些模拟数据,并将其导出为json,以便在删除数据库后将其用于种子。如何以编程方式导入mongodb中的.json文件--这是json文件: "_id": { }, "email": "user@abv.bg", "password": "$argon2i$v=19$m=40
浏览 2
提问于2020-12-17
得票数 0
回答已采纳
4
回答
MongoDb +猫鼬如何散列密码而不是单一密码
、
、
、
、
我使用(
Mongoose
)Model.
InsertMany
()将用户数据数组保存到Mongodb。若要散列单个用户密码,我将使用以下指南: 但是我想一次破解所有用户的密码。本指南使用“保存”函数进行散列,但由于我使用'
InsertMany
()‘转储到Mongodb,所以如何通过使用
InsertMany
()来实现散列
浏览 6
提问于2019-11-01
得票数 0
1
回答
猫鼬
insertMany
().exec()返回TypeError
、
、
、
、
下面的函数由异步/等待函数调用,因此我需要从
Mongoose
返回一个真正的承诺,因此在和中使用“()”。// where data is an array of documents return Model.
insertMany
(data).exec();这样做会导致以下错误: 如果删除exec(),就可以在没
浏览 2
提问于2018-07-21
得票数 7
回答已采纳
1
回答
使用mongo通过Lambda超时进行大容量插入,并插入数据3次
、
我们写了一个Lambda函数,简单地从S3 (JSON文件)中读取文件,然后使用
Mongoose
执行
InsertMany
。当我们执行这个lambda时。
浏览 59
提问于2018-06-26
得票数 1
2
回答
model.
insertMany
()
正如所述的,我可以看到model.create()的改进模式验证错误,但model.
insertMany
()没有。model.
insertMany
()的错误格式仍然如下。
insertMany
还不支持改进的格式吗?环境规划署:
mongoose
6.2.4模式: "$jsonSchema": { const s
浏览 18
提问于2022-07-06
得票数 1
回答已采纳
3
回答
MongoDb TypeError:无法读取未定义的属性“”
insertMany
“”
、
'); assert.equal(null, err); { item: "stamps" , qty: 30 } db.close(); 对于上面的代码,我得到的错误是无法读取未定义的属性
insertMany
但是当我输入下面的内容时 db.products.
insertMany</em
浏览 0
提问于2016-12-23
得票数 2
1
回答
Mongoose
insertMany
忽略unique:true
、
我有以下代码 const
mongoose
= require('
mongoose
');
mongoose
.set('useCreateIndex', true);
mongoose
.set('debug
浏览 21
提问于2020-04-08
得票数 0
2
回答
nestjs
mongoose
.
insertMany
不是一个函数。
、
、
我一直在使用"
insertMany
“。有人能解释一下如何使用这种方法吗?Nest官方文档对这一认识只字未提。upload.model.ts namebody.usernameCreate, }); return createUploa
浏览 0
提问于2021-10-24
得票数 0
2
回答
如何使用
mongoose
在mongoDB中删除我的收藏?
、
mongoose
.connect('mongodb://localhost:27017/samplecustomfields')const productfields =
mongoose
.model('fields'); app.get('/api/products
浏览 0
提问于2018-04-04
得票数 1
2
回答
将最多100万个文档插入mongodb集合的最佳方式
、
我需要上传一个包含大约一百万条记录的excel文件到mongodb。有没有人可以帮我把一百万个文档插入到mongodb中?
浏览 33
提问于2019-01-10
得票数 1
5
回答
Mongoose
创建多个文档
、
我知道在最新版本的
Mongoose
中,您可以将多个文档传递给create方法,在我的例子中,传递给文档数组甚至更好。
浏览 0
提问于2013-03-14
得票数 45
回答已采纳
3
回答
mongoose
.connect()不是在创建数据库吗?
、
、
我使用的是
mongoose
.connect()方法,但是它不能创建DB,我甚至使用
insertMany
()在db中插入了一些文档,但是它既没有给我任何错误,也没有创建一个DB,因为当我检查mongo时,('
mongoose
') useNewUrlParser: trueresult) { if (defa
浏览 6
提问于2020-04-08
得票数 0
回答已采纳
3
回答
写操作前的MongoDB nodejs钩子
、
我试着在谷歌中查找,如果在写之前有一个钩子,但没有找到任何东西,我想替换更新,updateMany,插入,
insertMany
,但如果有更多的写函数,我不知道我会错过他们,什么是最好的方法来实现这个?
浏览 0
提问于2019-06-03
得票数 1
1
回答
如何从第三方api保存json对象
、
、
、
、
express = require('express');var path = require('path');var Router = require('.= require('morgan'); var app = e
浏览 7
提问于2017-02-10
得票数 1
回答已采纳
1
回答
用猫鼬快车。并在子文档中提取涉外密钥子文档。
、
、
、
Country model var
mongoose
=(‘
mongoose
’);var Schema=
mongoose
.Schema {code :{type:String}, } 状态模型 va
浏览 3
提问于2017-12-18
得票数 0
1
回答
如何读取NodeJS表单数据并写入MongoDB
、
、
、
、
我创建了一个简单的动态单页表单,它根据x个人数呈现许多字段。我在正文解析器中使用了扩展设置来在我的html中提交嵌套对象。 { '10': { dietaryRequirements: 'None' '11': { die
浏览 0
提问于2020-02-02
得票数 0
回答已采纳
1
回答
如何使用
Mongoose
在mongodb中存储动态对象数组?
、
、
、
、
我想将数据对象数组存储到mongodb中,格式如下。 ‘ certifications' = { 'certification2' = { 'name': 'Angular'},} 比如wise,我想将数据存储到monogodb字段数组中。 Certiftication3,certifications4它是动态的,它来
浏览 21
提问于2019-01-03
得票数 1
点击加载更多
相关
资讯
mongoose实战
node+mongoose爬坑小结(一)
熟悉 node.js之mongoose
Mongoose 5.2.7 发布,MongoDB 异步对象模型工具
mongoose更新对象的两种方法对比
热门
标签
更多标签
云服务器
ICP备案
对象存储
即时通信 IM
实时音视频
活动推荐
运营活动
广告
关闭
领券