diff --git a/_includes/rest/queries.md b/_includes/rest/queries.md index a2acbb84..12a4f1e4 100644 --- a/_includes/rest/queries.md +++ b/_includes/rest/queries.md @@ -412,7 +412,9 @@ print result -You can restrict the fields returned by passing `keys` or `excludeKeys` a comma-separated list. To retrieve documents that contain only the `score` and `playerName` fields (and also special built-in fields such as `objectId`, `createdAt`, and `updatedAt`): +You can restrict the fields returned by passing `keys` or `excludeKeys` as an [array](#arrays). To retrieve documents that contain only the `score` and `playerName` fields (and also special built-in fields such as `objectId`, `createdAt`, and `updatedAt`): + +* On Parse Server <5.0.0 pass a comma-delimited string, e.g. `"score,playerName"` instead of an array for `keys` and `excludeKeys`.
@@ -426,7 +428,7 @@ curl -X GET \
import json,httplib,urllib
connection = httplib.HTTPSConnection('YOUR.PARSE-SERVER.HERE', 443)
-params = urllib.urlencode({"keys":"score,playerName"})
+params = urllib.urlencode({"keys":"[score,playerName]"})
connection.connect()
connection.request('GET', '/parse/classes/GameScore?%s' % params, '', {
"X-Parse-Application-Id": "${APPLICATION_ID}",