如何在bluemix上配置带有nodered的mongodb?

时间:2018-06-19 07:27:20

标签: mongodb ibm-cloud node-red

我需要使用nodered在bluemix上存储数据,但我不知道如何设置mongodb节点的配置?我搜索了互联网,发现有一项名为" mongolab"您应该添加到您的组织,以便能够使用monogodb,但我搜索了mongolab服务,我没有找到它。有没有办法在nodered上配置和使用mongodb? enter image description here

1 个答案:

答案 0 :(得分:0)

您应该使用Compose的mongoDb服务:post

请参阅以下文章,了解如何与Compose和Mongodb进行集成: https://console.bluemix.net/catalog/services/compose-for-mongodb https://www.compose.com/articles/power-prototyping-with-mongodb-and-node-red-2/

以下是链接中的内容:

there's a good demo video involving MongoDB here: https://www.youtube.com/watch?v=f5o4tIz2Zzc

This uses twitter as the source of data to be in put into, and queried from, mongodb, but the principles are the same.

To answer some of your specific questions:

    you can use either save or insert for the case you describe. (This page describes the detailed difference
    you can pick your own collection name. You can have multiple collections within the database instance you have provisioned.
    the mongodb query node can be used to get the data back. The demo video above shows a quick and easy way to get to the data via an http request.