2015-11-01 99 views
0

我想排除以https開頭的網址,有沒有辦法用Parse.com查詢約束來做到這一點?Parse.com約束「whereNotStartsWith」

上whereStartsWith

[https://parse.com/docs/android/api/com/parse/ParseQuery.html#whereStartsWith(java.lang.String,%20java.lang.String)][1] 

回答

0

的文檔只要你保持你的鏈接,在解析Strings你應該能夠調用(您ParseQuery對象):

query.whereStartsWith(KEY_TO_FIELD_STORING_LINK, "http://"); 

如果該字段存儲以https://開頭的值,因此ParseQuery不會返回該值。

0

根據documentation,這應該工作:

ParseObject.GetQuery("yourClassName") 
      .WhereDoesNotMatchesKeyInQuery("yourUrlKey", "yourUrlKey", 
      ParseObject.GetQuery("yourClassName").WhereStartsWith("yourUrlKey", "https"));