Skip to content

Commit f8045bd

Browse files
JeffGuKangdplewis
authored andcommitted
Update live-query.md (#696)
`subscribe()` => `await subscribe()` ```javascript let query = new Parse.Query('People'); query.equalTo('name', 'Mengyan'); let subscription = await query.subscribe(); ```
1 parent 5a685ad commit f8045bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/parse-server/live-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ We provide JavaScript, Android and iOS LiveQuery Clients for now. Lets use the J
3939
```javascript
4040
let query = new Parse.Query('People');
4141
query.equalTo('name', 'Mengyan');
42-
let subscription = query.subscribe();
42+
let subscription = await query.subscribe();
4343
```
4444

4545
After you get the `subscription`, you can use it to receive the updates of the related `Parse.Object`. For example, if someone creates a `People` object whose `name` field is `Mengyan`, then you can get the `People` object like this:

0 commit comments

Comments
 (0)