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
This feature is only available in KurrentDB 25.1 and later.
254
+
:::
255
+
256
+
You can append events to multiple streams in a single atomic operation. Either all streams are updated, or the entire operation fails.
257
+
258
+
The `multiStreamAppend` method accepts a collection of `AppendStreamRequest` objects and returns a `MultiAppendWriteResult`. Each `AppendStreamRequest` contains:
259
+
260
+
-**streamName** - The name of the stream
261
+
-**expectedState** - The expected state of the stream for optimistic concurrency control
262
+
-**events** - A collection of `EventData` objects to append
263
+
264
+
The operation returns a `MultiAppendWriteResult` that contains either:
265
+
- A list of `AppendStreamSuccess` objects if all streams were successfully updated
266
+
- A list of `AppendStreamFailure` objects if any streams failed to update
267
+
268
+
::: warning
269
+
Event metadata in `EventData` must be valid JSON objects. This requirement will
270
+
be removed in a future major release.
271
+
:::
272
+
273
+
Here's a basic example of appending events to multiple streams:
0 commit comments