Skip to content

Commit

Permalink
docs: added an example of document and clarified the subscription method
Browse files Browse the repository at this point in the history
  • Loading branch information
GuinierRemi authored Sep 11, 2023
1 parent 13e0f07 commit 261d499
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ Kourou is now waiting for realtime notifications about changes in our collection

We are going to create a new document in the Admin Console to trigger one!

Open the [Admin Console](http://next-console.kuzzle.io/#/data/nyc-open-data/yellow-taxi) and then create a new document.
Open the [Admin Console](http://next-console.kuzzle.io/#/data/nyc-open-data/yellow-taxi) and then create a new document :

```bash
{
"name": "Nerwin",
"city": "Montreal",
"age": 26
}
```

Then you should receive a notification about the created document in your terminal:

Expand Down Expand Up @@ -77,7 +85,10 @@ This filter must be written using [Koncorde Filter Syntax](/core/2/api/koncorde-
Koncorde is part of the Realtime Engine and handles subscription filters.
:::

Now we can subscribe again with a filter:
We can now subscribe with a filter.

If you still have the previous subscription active in a terminal, cancel it and subscribe again.


```bash
kourou realtime:subscribe nyc-open-data yellow-taxi '{
Expand Down

0 comments on commit 261d499

Please sign in to comment.