Skip to content

Commit 08f7eda

Browse files
authored
Context around database operations with LiveQuery
1 parent 5f87d27 commit 08f7eda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_includes/cloudcode/cloud-code.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,11 @@ Parse.Cloud.afterLiveQueryEvent('MyObject', (request) => {
665665
request.sendEvent = false;
666666
}
667667
});
668+
```
669+
670+
By default, ParseLiveQuery does not perform queries that require additional database operations. This is to keep your Parse Server as fast and effient as possible. If you require this functionality, you can perform these in `afterLiveQueryEvent`.
668671
672+
```javascript
669673
// Including an object on LiveQuery event, on update only.
670674
Parse.Cloud.afterLiveQueryEvent('MyObject', async (request) => {
671675
if (request.event != "update") {

0 commit comments

Comments
 (0)