Skip to content

Commit 50d3f2b

Browse files
authored
Update keys and excludeKeys to use arrays
Supports changes made in pending [PR](parse-community/parse-server#7242). Can see [here](parse-community/parse-server#7245) for further discussion.
1 parent dcdfe4b commit 50d3f2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/rest/queries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ print result
412412
</code></pre>
413413
</div>
414414

415-
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`):
415+
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`):
416416

417417
<div class="language-toggle">
418418
<pre><code class="bash">
@@ -426,7 +426,7 @@ curl -X GET \
426426
<pre><code class="python">
427427
import json,httplib,urllib
428428
connection = httplib.HTTPSConnection('<span class="custom-parse-server-url">YOUR.PARSE-SERVER.HERE</span>', 443)
429-
params = urllib.urlencode({"keys":"score,playerName"})
429+
params = urllib.urlencode({"keys":"[score,playerName]"})
430430
connection.connect()
431431
connection.request('GET', '<span class="custom-parse-server-mount">/parse/</span>classes/GameScore?%s' % params, '', {
432432
"X-Parse-Application-Id": "<span class="custom-parse-server-appid">${APPLICATION_ID}</span>",

0 commit comments

Comments
 (0)