Parse geo-queries always empty

后端 未结 2 1901
情歌与酒
情歌与酒 2021-01-14 19:38

Im currently trying to get Parse\'s geo-query system to work. On my data browser, I have an installation with a key \"location\" of type geo-point that has a geo-point with

相关标签:
2条回答
  • 2021-01-14 20:21

    The Installation class can't be queried from the client, for good reason. Too much sensitive information is stored in the Installation class to allow querying from a client.

    Either move the location property to another class you can query, or query it in a Cloud Function.

    You can query it in Cloud Code if you use Parse.Cloud.useMasterKey();, though I strongly recommend using a different class to store the location.

    0 讨论(0)
  • 2021-01-14 20:40

    Should the url be https://api.parse.com/1/classes/Installation instead of https://api.parse.com/1/classes/PlaceObject ?

    0 讨论(0)
提交回复
热议问题