【问题标题】:Can't browse collections of new MongoDB in Retool?无法在 Retool 中浏览新的 MongoDB 集合?
【发布时间】:2022-11-10 05:12:39
【问题描述】:

我正在使用 Retool 连接到 MongoDB。我已经设置了资源并且连接成功。但是,当我尝试在 Retool 中构建查询时,它让我选择了“集合”,但我无法让我的集合出现 - 它显示没有可用的集合。

我已经在 MongoDB 的管理门户中确认我确实在该集合中有一个集合 + 数据。

为什么我在 Retool 中看不到它?我是否需要调整我的资源连接以专门查找我的收藏?

【问题讨论】:

  • 请检查我的answer 来解决同样的问题。

标签: database mongodb retool


【解决方案1】:

我自己也遇到了这个问题。我可以按照这里的步骤让它工作: https://retool.com/blog/building-a-listing-approval-tool-in-mongodb/

进一步来说:

您只需要一个加载了 sample_airbnb 数据集的 MongoDB 集群即可开始。 MongoDB Cloud 有一个非常慷慨的免费套餐和很棒的文档,所以你得心应手。如果您已经有一个集群启动并运行,您可以通过单击集群主页上的 3 个点并选择“加载样本数据集”来添加样本数据集。

  1. 从 MDB 获取链接,应如下所示:mongodb+srv://gagejustins:@retool-test-betz7.azure.mongodb.net/test?retryWrites=true&w=majority
  2. 去掉mongodb.net/后面的链接结尾,替换成数据库名。在这种情况下,名称是 sample_airbnb。您完成的链接应如下所示:mongodb+srv://gagejustins:@retool-test-betz7.azure.mongodb.net/sample_airbnb

    不要忘记使用您的数据库密码更改。

【讨论】:

    猜你喜欢
    • 2018-09-17
    • 2019-02-04
    • 2015-06-06
    • 1970-01-01
    • 2020-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多