Skip to content

Commit

Permalink
Merge pull request #1930 from FlowFuse/sumitshinde-84-patch-1
Browse files Browse the repository at this point in the history
Update using-mongodb-with-node-red.md
  • Loading branch information
ZJvandeWeg authored Apr 14, 2024
2 parents 61fa93f + 1e2badb commit 13e4b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blog/2024/04/using-mongodb-with-node-red.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ To build a user-friendly interactive UI for our CRM system, we will utilize Node

1. Drag a ui-form widget onto the canvas, select ui-group for it, and add the form elements for `firstname`, `lastname`, `email`, `phone`, `company`, `status` and `source`.

!["Screenshot displaying form widget configuration to insert data in MongoDB"](./images/using-mongodb-with-node-red-insert-data-form.png "Screenshot displaying form widget configuration to insert data in MongoDB"](./images/using-mongodb-with-node-red-insert-data-form.png "Screenshot displaying form to insert data in MongoDB"){data-zoomable}
!["Screenshot displaying form widget configuration to insert data in MongoDB"](./images/using-mongodb-with-node-red-insert-data-form.png "Screenshot displaying form widget configuration to insert data in MongoDB"){data-zoomable}

2. Drag the friendly-id node onto Canvas, click on and select and select mode as “Generate a random FriendlyId (nanoid)”, set the size according to your need, and output-to `msg.payload._id`.

Expand Down Expand Up @@ -162,7 +162,7 @@ To build a user-friendly interactive UI for our CRM system, we will utilize Node

- Drag the ui-form widget onto the canvas, create a new ui-group for it, and add form elements for "id" and "status".

!["Screenshot displaying form widget configuration to update data in MongoDB"](./images/using-mongodb-with-node-red-insert-data-form.png "Screenshot displaying form widget configuration to update data in MongoDB"]{data-zoomable}
!["Screenshot displaying form widget configuration to update data in MongoDB"](./images/using-mongodb-with-node-red-insert-data-form.png "Screenshot displaying form widget configuration to update data in MongoDB"){data-zoomable}

- Drag the change node onto the canvas. In the change node, set `msg.payload` as the following JSON object:

Expand Down

0 comments on commit 13e4b9c

Please sign in to comment.