当前位置:网站首页>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
}边栏推荐
- 10_ UE4 advanced_ Add fall and cast actions
- 蓝桥杯嵌入式-HAL库-ADC
- Invalid ROM Table原因及解决办法
- Advance.ai sailing guide helps enterprises sail to Indonesia and grasp half of the Southeast Asian market
- 零代码 | 轻松实现数据仓库建模,搭建BI看板
- Judge whether the nixie tube is a common anode or a common cathode
- PyQt5快速开发与实战 4.11 拖曳与剪贴板
- I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
- Go json. Decoder Considered Harmful
- Inventory: exciting data visualization chart
猜你喜欢

哈希表的相关知识点

Two years of crud, two graduates, two months of preparation for the interview with ALI, and fortunately won the offer grading p6

Redis-day01 common sense supplement and redis introduction

Blue Bridge Cup embedded Hal library LCD

分体式测斜探头安装要点及注意事项

一文学会如何做电商数据分析(附运营分析指标框架)

Crm+ zero code: easily realize enterprise informatization
Advanced C language: pointer (1)

Configuring raspberry pie, process and problems encountered

GKRidgedNoiseSource
随机推荐
GKCheckerboardNoiseSource
GKRandomSource
An example of SQL trace in MySQL
粒子群解决tsp的技术问题
samba服务器配置
GKCylindersNoiseSource
Inventory: exciting data visualization chart
GKPolygonObstacle
Install GMP
Blue Bridge Cup embedded Hal library ADC
这里有一份超实用Excel快捷键合集(常用+八大类汇总)
GKSpheresNoiseSource
Samba server configuration
Yan reports an error: exception message: /bin/bash: line 0: fg: no job control
蓝桥杯嵌入式-HAL库-SYSTICK
Reading these six books makes learning MySQL easier
低代码十问:一文讲透关于低代码的一切!
GKCircleObstacle
Arduino Basics
Andorid 开发三 (Intent)