0
内筛选如何过滤文件,如果有使用RestheartRestheart |数组
数据(阵列中的数据)的子集这是一个示例JSON
{
"_id" : ObjectId("58760e53a4c0a73900472eb0"),
"foods" : [
"root vegetables",
"yogurt",
"other vegetables"
],
"prices" : [
"$1",
"$23",
"$21",
],
"market_ratio" : 0.606299212598425
}
例如,我想所有的文件与foods
,其中包括```酸奶
我试过?filter={'foods':['yogurt']}&sort_by=+market_ratio"
但它不会返回任何东西。
尝试'过滤器= “{ '食物': '酸奶'}”?&sort_by = + market_ratio' – chridam