I want to fetch specific records from parse database using http request based on some specific column.
我想根据某些特定列使用http请求从解析数据库中获取特定记录。
I run this url
我运行这个网址
https://myAppID:javascript-key=myJavaScriptKey@api.parse.com/1/classes/GameScore/Ed1nuqPvcm
in browser provided on parse.com REST API Guide by providing my parse app id and javascript key. I used my own table name instead of GameScore. As I want to fetch specific records on the base of other column not by object id. So I replace the objectid of above url with day=13. So final url is
在parse.com REST API指南中提供的浏览器中提供我的解析应用程序ID和javascript密钥。我使用自己的表名而不是GameScore。因为我想在其他列的基础上获取特定记录而不是对象id。所以我用day = 13替换上面url的objectid。所以最后的网址是
https://myAppID:javascript-key=myJavaScriptKey@api.parse.com/1/classes/ChallengeTask?day=13.
Where day is column name in my table having datatype Number
. What I meant by above query is that it will return me all records with having day equal to 13
. But when I execute, it returned me all records of table instead of which have day equal to 13
. What am I doing wrong.
where table是我的表中具有数据类型Number的列名。上面的查询我的意思是它将返回所有日期等于13的记录。但是当我执行时,它返回了我所有的表记录,而不是那天等于13的那一天。我做错了什么。
1 个解决方案
#1
0
This should work in the browser
这应该在浏览器中工作
https://myAppID:javascript-key=myJavaScriptKey@api.parse.com/1/classes/ChallengeTask?where={"day":13}
#1
0
This should work in the browser
这应该在浏览器中工作
https://myAppID:javascript-key=myJavaScriptKey@api.parse.com/1/classes/ChallengeTask?where={"day":13}