B表为主表字段type_id,并且在schema中设置"foreignKey": "附表._id",但是在联表查询的时候数据为空
const A = db.collection('A').getTemp()
const B= db.collection(‘B',A).where(type_id == 'XXXX'
).get()
查询数据为空

1***@qq.com
- 发布:2025-04-23 10:30
- 更新:2025-04-23 10:31
- 阅读:18
1 个回复
1***@qq.com (作者) - MAGIC
XXXX等于A表中某条数据的_id