搭建
在 Duaer 里用 MongoDB 查文档
在 Duaer 里,MongoDB 默认 Resource 是 Document,Operation 是 Find。填 Collection;Query (JSON Format) 默认是 {}。需要 mongoDb 凭据。
按条件查找
- 先建好 mongoDb 凭据。
- 搜索 MongoDB,接到上一个节点后面,选上凭据。
- Resource 保持 Document,Operation 保持 Find。
- 填 Collection。
- Query (JSON Format) 默认 {}(查全部);可改成条件 JSON。点执行此步骤。
同 Resource 下还有 Aggregate、Insert、Update、Delete、Find And Update、Find And Replace。
动态值优先用 Query Parameters($1、$2),少把表达式直接嵌进查询 JSON。
常见问题
Duaer 的 MongoDB Find 默认限制条数吗?
Options 里 Limit 默认是 0,表示不限制。需要上限时在 Options 里改 Limit。
同组
节点
在 Duaer 里用 Postgres 读写表
在 Duaer 里,Postgres 默认 Operation 是 Insert。选 Schema、Table,再在 Columns 里映射字段。需要 postgres 凭据。
节点在 Duaer 里用 MySQL 读写表
在 Duaer 里,MySQL 默认 Operation 是 Insert。选 Table;Data Mode 默认 Auto-Map Input Data to Columns。需要 mySql 凭据。
数据在 Duaer 里用数据表留下结果
在 Duaer 里,数据表存在当前项目里。一条数字组织写入的行,同一项目里的另一条可以再读。