查詢例如,如果我的數據庫是:如何做一個「喜歡」在Parse.com
{
people: name: [{"first":"Billy", "last":"smith"}]
},
{
people: name: [{"first":"bob", "last":"smith"}]
},
{
people: name: [{"first":"thor", "last":"smith"}]
},
{
people: name: [{"first":"hobo", "last":"smith"}]
}
我想的東西的效果:query.like("b")
並使其返回第一,第二和第四docs
在Javascript API中有這樣的事嗎?
相關:https://www.parse.com/questions/are-like-or-regex-queries-possible-via-the-rest-api –
所以Javascript query.startsWith()函數只會得到「比利」和「鮑勃」。不是「流浪漢」。所以它缺乏這方面的內容。 – bzupnick