Hi,
When I perform the following query using curl
curl -X GET -H "X-Parse-Application-Id: APPLICATION_ID" -H "X-Parse-Master-Key: MASTER_KEY" http://192.122.122.122:1337/parse/classes/GameScore/iPXxXjpJSg
I can see on the server side that AppId and Master Key are part of the http headers
verbose: REQUEST for [GET] /parse/classes/GameScore/iPXxXjpJSg: {} {"body":{},"headers":{"accept":"*/*","host":"192.122.122.122:1337","user-agent":"curl/7.64.1","x-parse-application-id":"APPLICATION_ID","x-parse-master-key":"MASTER_KEY"},"method":"GET","url":"/parse/classes/GameScore/iPXxXjpJSg"}
and the query being run looks like
{"objectId":"iPXxXjpJSg"}
Yet when using the Javascript API
Parse.initialize("APPLICATION_ID","","MASTER_KEY")
Parse.serverURL = 'http://192.122.122.122:1337/parse'
const GameScore = Parse.Object.extend("GameScore");
const query = new Parse.Query(GameScore);
AppID and MasterKey are not part of the Request Headers
verbose: REQUEST for [GET] /parse/classes/GameScore: {
"where": {
"objectId": "iPXxXjpJSg"
},
"limit": 1
} {"body":{"limit":1,"where":{"objectId":"iPXxXjpJSg"}},"headers":{"accept":"*/*","accept-encoding":"gzip, deflate","accept-language":"en-US,en;q=0.5","cache-control":"no-cache","connection":"keep-alive","content-length":"179","content-type":"text/plain","host":"192.122.122.122:1337","origin":"http://localhost:3000","pragma":"no-cache","referer":"http://localhost:3000/","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0"},"method":"GET","url":"/parse/classes/GameScore"}
and the query being tun looks like
{"objectId":"iPXxXjpJSg","_rperm":{"$in":[null,"*","*"]}}
I would have expected the queries to have been similar
What is going on here?
Thnx