当前位置:网站首页>Nodejs: return value of mongodb after successful insertion
Nodejs: return value of mongodb after successful insertion
2022-07-28 10:55:00 【shunzi2016】
{
address: '2.3.4.5',
timestamp: { create: 1627380254898, update: 1627380254898 }
}
CommandResult {
result: { n: 1, ok: 1 },
connection: Connection {
_events: [Object: null prototype] {
commandStarted: [Function (anonymous)],
commandFailed: [Function (anonymous)],
commandSucceeded: [Function (anonymous)],
clusterTimeReceived: [Function (anonymous)]
},
_eventsCount: 4,
_maxListeners: undefined,
id: 1,
address: '127.0.0.1:17270',
bson: BSON {},
socketTimeout: 360000,
monitorCommands: false,
closed: false,
destroyed: false,
lastIsMasterMS: 6,
[Symbol(kCapture)]: false,
[Symbol(description)]: StreamDescription {
address: '127.0.0.1:17270',
type: 'Standalone',
minWireVersion: 0,
maxWireVersion: 8,
maxBsonObjectSize: 16777216,
maxMessageSizeBytes: 48000000,
maxWriteBatchSize: 100000,
compressors: []
},
[Symbol(generation)]: 0,
[Symbol(lastUseTime)]: 1627380246598,
[Symbol(queue)]: Map(0) {},
[Symbol(messageStream)]: MessageStream {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
bson: BSON {},
maxBsonMessageSize: 67108864,
[Symbol(kCapture)]: false,
[Symbol(buffer)]: [BufferList]
},
[Symbol(stream)]: Socket {
connecting: false,
_hadError: false,
_parent: null,
_host: null,
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
timeout: 360000,
_peername: [Object],
[Symbol(async_id_symbol)]: 633,
[Symbol(kHandle)]: [TCP],
[Symbol(kSetNoDelay)]: true,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 360000,
_idlePrev: [TimersList],
_idleNext: [Timeout],
_idleStart: 39981,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 1170,
[Symbol(triggerId)]: 633
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0
},
[Symbol(ismaster)]: {
ismaster: true,
maxBsonObjectSize: 16777216,
maxMessageSizeBytes: 48000000,
maxWriteBatchSize: 100000,
localTime: 2021-07-27T10:03:36.821Z,
logicalSessionTimeoutMinutes: 30,
connectionId: 4290,
minWireVersion: 0,
maxWireVersion: 8,
readOnly: false,
ok: 1
}
},
message: BinMsg {
parsed: true,
raw: <Buffer 2d 00 00 00 67 36 01 00 27 01 00 00 dd 07 00 00 00 00 00 00 00 18 00 00 00 10 6e 00 01 00 00 00 01 6f 6b 00 00 00 00 00 00 00 f0 3f 00>,
data: <Buffer 00 00 00 00 00 18 00 00 00 10 6e 00 01 00 00 00 01 6f 6b 00 00 00 00 00 00 00 f0 3f 00>,
bson: BSON {},
opts: { promoteLongs: true, promoteValues: true, promoteBuffers: false },
length: 45,
requestId: 79463,
responseTo: 295,
opCode: 2013,
fromCompressed: undefined,
responseFlags: 0,
checksumPresent: false,
moreToCome: false,
exhaustAllowed: false,
promoteLongs: true,
promoteValues: true,
promoteBuffers: false,
documents: [ [Object] ],
index: 29
},
ops: [
{
address: '2.3.4.5',
timestamp: [Object],
_id: 60ffda1ed9cfef03f24c4e58
}
],
insertedCount: 1,
insertedId: 60ffda1ed9cfef03f24c4e58
}边栏推荐
- JSON preliminary understanding
- GKLinearCongruentialRandomSource
- Samba learning
- Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6
- GKCoherentNoiseSource
- JDBC各个类的解释
- GKConstantNoiseSource
- Samba server configuration
- 盘点:144个免费学习网站,全网最全资源合集
- 吊打面试官的问题
猜你喜欢

Ten questions about low code: tell everything about low code!

MySQL Architecture Principle

零代码 | 轻松实现数据仓库建模,搭建BI看板

Yan reports an error: exception message: /bin/bash: line 0: fg: no job control

学会这些分析方法及模型,遇到问题不再没思路

蓝桥杯嵌入式-HAL库-LCD

Crm+ zero code: easily realize enterprise informatization

Batch Normlization

6. MapReduce custom partition implementation

用 ZEGO Avatar 做一个虚拟人|虚拟主播直播解决方案
随机推荐
Pyqt5 rapid development and practice 4.13 menu bar, toolbar and status bar and 4.14 qprinter
Start from scratch blazor server (2) -- consolidate databases
10_ue4进阶_添加倒地和施法动作
nodemcu之开发环境配置
蓝桥杯嵌入式-HAL库-LCD
Advance.ai sailing guide helps enterprises sail to Indonesia and grasp half of the Southeast Asian market
1. Sum of two numbers
GKPolygonObstacle
Samba learning
Header library file
Samba server configuration
Solving the optimal solution of particle swarm optimization
GKCircleObstacle
使用statement对象执行DDL语句创建表
GKCylindersNoiseSource
21. Merge two ordered linked lists
Redis-day01-常识补充及redis介绍
GKConstantNoiseSource
国内外优秀程序员的博客全在这了,请查收
Apb2 and apb1 in stm32