NGRP / node-red-contrib-viseo

Node-RED nodes OpenSourced by VISEO Technologies
Apache License 2.0
227 stars 83 forks source link

Why setting a string to the neDB value's key fails ? #69

Closed samuelguesnier closed 6 years ago

samuelguesnier commented 6 years ago

Hello :)

Why setting a string to the value fails ? I imagine it is because it's a NoSQL database working w/ BSON, ( or I'm doing something wrond ) and it must have a key and a value, like {"city": "Amsterdam"}. But it would be maybe easier to set "city" to msg.key and "Amsterdam" to msg.value. I tested and it is not working. (But when I set msg.value to { "city" : "Amsterdam"}, it is working) .

Another question : In this example https://raw.githubusercontent.com/NGRP/node-red-contrib-viseo/master/node-red-contrib-botbuilder/doc/node_start.jpg What is written in the key and value fields ?

Thank you for your help and great work

samuelguesnier commented 6 years ago

I finally accepted that an object must be set in the value, sorry for this question :p