Search code examples
parse-platformparse-server

Query inside "Object" column with Parse


Is there a way to query inside a Object column with ParsePlatform (parse-server)? Currently the Javascript SDK, as well as the REST API, only allows query on Schema columns.


Solution

  • This is possible with Parse by default, example:

    curl -X GET \
      -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
      -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
      -G \
      --data-urlencode 'where={"player.Name":"Sean Plott"' \
      https://api.parse.com/1/classes/GameScore
    

    Where player is the field name and Name is the key in the object stored in that field row.