Skip to content
daniel edited this page May 30, 2018 · 2 revisions

Dynamo DB Connverter

This is a utility node (doesn't call an AWS service) for converting JS objects to DynamoDB format and back.

--- Examples [{"id":"5dfbe5c7.a744fc","type":"inject","z":"b7a1929a.854e5","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":193,"y":246.5,"wires":"596cfbfb.2e5334"},{"id":"d9b7bee8.d1b22","type":"debug","z":"b7a1929a.854e5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":752,"y":536,"wires":[]},{"id":"80fbfc01.09a54","type":"AWS DynamoDB Converter","z":"b7a1929a.854e5","operation":"Unmarshall","wrapNumbers":false,"convertEmptyValues":true,"x":428,"y":475.5,"wires":"fbb8513a.c15e3","c824be3f.7f4f6"},{"id":"596cfbfb.2e5334","type":"function","z":"b7a1929a.854e5","name":"","func":"msg.payload={string:"hello",num:100,logic:true,empty:""};\nreturn msg;","outputs":1,"noerr":0,"x":149,"y":461,"wires":"d218b4d0.2eab18"},{"id":"fbb8513a.c15e3","type":"AWS DynamoDB Converter","z":"b7a1929a.854e5","operation":"Marshall","wrapNumbers":false,"convertEmptyValues":true,"x":432,"y":558,"wires":"d9b7bee8.d1b22","dd02700a.a67d8"},{"id":"c824be3f.7f4f6","type":"debug","z":"b7a1929a.854e5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":755,"y":443,"wires":[]},{"id":"dd02700a.a67d8","type":"AWS DynamoDB Converter","z":"b7a1929a.854e5","operation":"Unmarshall","wrapNumbers":false,"convertEmptyValues":true,"x":436,"y":624,"wires":"5e8b5080.1141b"},{"id":"5e8b5080.1141b","type":"debug","z":"b7a1929a.854e5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":721,"y":622,"wires":[]},{"id":"d218b4d0.2eab18","type":"AWS DynamoDB Converter","z":"b7a1929a.854e5","operation":"Marshall","wrapNumbers":false,"convertEmptyValues":false,"x":416,"y":407,"wires":"e99c174d.999418","80fbfc01.09a54"},{"id":"e99c174d.999418","type":"debug","z":"b7a1929a.854e5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":767,"y":382,"wires":[]},{"id":"57a337b2.e2d038","type":"AWS DynamoDB Converter","z":"b7a1929a.854e5","operation":"Input","wrapNumbers":false,"convertEmptyValues":true,"x":452,"y":74,"wires":"c34c2cda.f2df9","2fd8baf4.687916"},{"id":"2fd8baf4.687916","type":"debug","z":"b7a1929a.854e5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":767,"y":102.5,"wires":[]},{"id":"6097405e.1292b","type":"debug","z":"b7a1929a.854e5","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":772,"y":166.5,"wires":[]},{"id":"c34c2cda.f2df9","type":"AWS DynamoDB Converter","z":"b7a1929a.854e5","operation":"Output","wrapNumbers":false,"convertEmptyValues":true,"x":465,"y":163,"wires":"6097405e.1292b"},{"id":"2e13bb21.9952d4","type":"inject","z":"b7a1929a.854e5","name":"","topic":"","payload":"this is a string","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":172,"y":61.5,"wires":"57a337b2.e2d038"},{"id":"da17b40f.834978","type":"inject","z":"b7a1929a.854e5","name":"","topic":"","payload":"99","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":193,"y":105,"wires":"57a337b2.e2d038"},{"id":"9b3b689e.a92eb8","type":"inject","z":"b7a1929a.854e5","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":196,"y":150,"wires":"57a337b2.e2d038"}]

Clone this wiki locally