From 24b022c5f2f99dc09116be5f19d6f8ec20d9a3b1 Mon Sep 17 00:00:00 2001 From: Antonio Davi Macedo Coelho de Castro Date: Thu, 8 Aug 2019 13:12:53 -0700 Subject: [PATCH 1/2] Include more information about create and update response body --- _includes/rest/objects.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_includes/rest/objects.md b/_includes/rest/objects.md index 737d02344..efe6b3db7 100644 --- a/_includes/rest/objects.md +++ b/_includes/rest/objects.md @@ -99,6 +99,8 @@ The response body is a JSON object containing the `objectId` and the `createdAt` } ``` +The response body also includes any field that was modified using `beforeSave` and `afterSave` triggers. + ## Retrieving Objects Once you've created an object, you can retrieve its contents by sending a GET request to the object URL returned in the location header. For example, to retrieve the object we created above: @@ -223,7 +225,7 @@ print result -The response body is a JSON object containing just an `updatedAt` field with the timestamp of the update. +The response body is a JSON object containing by default an `updatedAt` field with the timestamp of the update. ```json { @@ -231,6 +233,8 @@ The response body is a JSON object containing just an `updatedAt` field with the } ``` +The response body also includes any field that was modified using `beforeSave` and `afterSave` triggers. + ### Counters To help with storing counter-type data, Parse provides the ability to atomically increment (or decrement) any number field. So, we can increment the score field like so: From 477d20bf70805a0191f3a36e00aaa9bf120468e2 Mon Sep 17 00:00:00 2001 From: Antonio Davi Macedo Coelho de Castro Date: Fri, 9 Aug 2019 16:50:22 -0700 Subject: [PATCH 2/2] Update _includes/rest/objects.md Co-Authored-By: Tom Fox --- _includes/rest/objects.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/rest/objects.md b/_includes/rest/objects.md index efe6b3db7..add09f95d 100644 --- a/_includes/rest/objects.md +++ b/_includes/rest/objects.md @@ -225,7 +225,7 @@ print result -The response body is a JSON object containing by default an `updatedAt` field with the timestamp of the update. +The response body is a JSON object containing, by default, an `updatedAt` field with the timestamp of the update. ```json {