Restdb.io查询父子数组,获取所有客户的电子邮件地址为jos@gmail.com

时间:2018-04-19 18:07:42

标签: json mongodb nosql

当我去我的网址/休息/订单时,我得到了这个。我想选择*客户是jos@gmail.com。我在他们的文档中找不到关于此的内容。

https://collectandgo-6c14.restdb.io/rest/orders?&apikey=5ad8d75725a622ae4d528439

https://restdb.io/docs/querying-with-the-api?utm_source=syndicate&utm_medium=post&utm_campaign=sitepoint-aug17#restdb enter image description here

提前致谢, 卡尔文

1 个答案:

答案 0 :(得分:1)

这应该有效:

https://collectandgo-6c14.restdb.io/rest/orders?q={"Customer":{"$elementMatch":{"email":"jos@gmail.com"}}}&apikey=5ad8d75725a622ae4d528439