ozomer / node-red-contrib-mongodb2

MongoDB driver node for Node-RED
Apache License 2.0
15 stars 19 forks source link

driver response props missing in message.payload #34

Closed jomel closed 5 years ago

jomel commented 5 years ago

when running an operation like insertOne() the driver response incudes the following props:

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....