You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* afterLiveQueryEvent
* Update cloud-code.md
* Update cloud-code.md
* Update cloud-code.md
* Apply suggestions from code review
* Context around database operations with LiveQuery
* add parse server version
Co-authored-by: Tom Fox <[email protected]>
*Available only on parse-server cloud code starting 4.4.0*
642
+
643
+
In some cases you may want to manipulate the results of a Live Query before they are sent to the client. You can do so with the `afterLiveQueryEvent` trigger.
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`.
671
+
672
+
```javascript
673
+
// Including an object on LiveQuery event, on update only.
- Live Query events won't trigger until the `afterLiveQueryEvent` trigger has completed. Make sure any functions inside the trigger are efficient and restrictive to prevent bottlenecks.
700
+
639
701
## onLiveQueryEvent
640
702
641
703
*Available only on parse-server cloud code starting 2.6.2*
0 commit comments