Skip to content

Commit

Permalink
[DOCS-3454] README: Update streaming sample data (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored Sep 27, 2024
1 parent 4139405 commit b56ab05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ You can also pass a query that produces a stream token directly to
``stream()``:

```python
query = fql('Product.all().changesOn(.price, .quantity)')
query = fql('Product.all().changesOn(.price, .stock)')

client.stream(query)
```
Expand All @@ -333,7 +333,7 @@ You can also pass a query that produces a stream token directly to
use a generator expression to iterate through the events:

```python
query = fql('Product.all().changesOn(.price, .quantity)')
query = fql('Product.all().changesOn(.price, .stock)')

with client.stream(query) as stream:
for event in stream:
Expand All @@ -354,7 +354,7 @@ with client.stream(query) as stream:
Use ``close()`` to close a stream:

```python
query = fql('Product.all().changesOn(.price, .quantity)')
query = fql('Product.all().changesOn(.price, .stock)')

count = 0
with client.stream(query) as stream:
Expand All @@ -381,7 +381,7 @@ client = Client()

try:
with client.stream(fql(
'Product.all().changesOn(.price, .quantity)'
'Product.all().changesOn(.price, .stock)'
)) as stream:
for event in stream:
print(event)
Expand Down

0 comments on commit b56ab05

Please sign in to comment.