Skip to content

Commit 05ae58f

Browse files
committed
Adjusted getting-started.md for consistency and clarity.
1 parent 1e757c9 commit 05ae58f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/api/getting-started.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,12 @@ When appending to a stream, specify a `stream_name`, the new [`events`](./append
134134
::: tabs
135135
@tab sync
136136
```python:no-line-numbers
137-
from kurrentdbclient import StreamState
137+
from kurrentdbclient import NewEvent, StreamState
138+
139+
new_event = NewEvent(
140+
type="OrderCreated",
141+
data=b'{"name": "Greg"}',
142+
)
138143
139144
client.append_to_stream(
140145
stream_name="order-123",
@@ -144,7 +149,7 @@ client.append_to_stream(
144149
```
145150
@tab async
146151
```python:no-line-numbers
147-
from kurrentdbclient import StreamState
152+
from kurrentdbclient import NewEvent, StreamState
148153
149154
new_event = NewEvent(
150155
type="OrderCreated",

0 commit comments

Comments
 (0)