Find document with array that contains a specific value

前端 未结 10 1435
猫巷女王i
猫巷女王i 2020-11-22 04:06

If I have this schema...

person = {
    name : String,
    favoriteFoods : Array
}

... where the favoriteFoods array is popula

10条回答
  •  迷失自我
    2020-11-22 04:25

    For Loopback3 all the examples given did not work for me, or as fast as using REST API anyway. But it helped me to figure out the exact answer I needed.

    {"where":{"arrayAttribute":{ "all" :[String]}}}

提交回复
热议问题