Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion _includes/rest/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -223,14 +225,16 @@ print result
</code></pre>
</div>

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
{
"updatedAt": "2011-08-21T18:02:52.248Z"
}
```

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:
Expand Down