-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
when running an operation like insertOne() the driver response incudes the following props:
- insertedCount : The total amount of documents inserted.
- ops : All the documents inserted using insertOne/insertMany/replaceOne.
- insertedIds : Map of the index of the inserted document to the id of the inserted document.
- connection : The connection object used for the operation.
- result : The raw command result object returned from MongoDB
-- ok
-- n
as per: http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#~insertWriteOpResult
Therefore I expected my resulting message to look like:
msg
|_ payload
|_ insertedCount
|_ ops
|_ insertedIds
_(I am not expecting connection, as I know it is being explicitly removed, to save response sizes)_
|_ result
|_ ok
|_ n
insted my resulting messge looks like:
msg
|_ payload
|_ n
|_ opTime
|_ electionId
|_ ok
|_ operationTime
|_ "$clusterTime
I think this is a bug in how the response in converted into the message....
Metadata
Metadata
Assignees
Labels
No labels