【发布时间】:2021-12-15 10:59:30
【问题描述】:
我有以下来自 Strapi cms 的用户 API,我想深入获取地址组件(可重复组件)。
所以,我要获取的是地址为63 Southlands Road的用户...我尝试了很多方法:
- 尝试了 Strapi 内置查询
http://localhost:1337/users?address.info=63%20Southlands%20Road
-
尝试了自定义查询:
const result = await strapi .query("user") .model.query((qb) => { qb.where("address.info", "63 Southlands Road"); }) .fetch();
以上所有这些消息都没有解决,我用完了选项。这在 Strapi 中是否可行...如果不是,我正在尝试切换到节点服务器。
【问题讨论】:
标签: node.js database content-management-system strapi bookshelf.js