Skip to content

Commit 3f380de

Browse files
committed
add warning
1 parent 60cc708 commit 3f380de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

node.js/outbox.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ You still need to `await` these operations, because messages might be stored in
3131
The `cds.outboxed` function can also be called with optional configuration options.
3232

3333
```js
34-
const outboxed = cds.outboxed(srv, { kind: 'in-memory-outbox' })
34+
const outboxed = cds.outboxed(srv, { kind: 'persistent-outbox' })
3535
```
3636

3737
::: tip
3838
One you outboxed a service, you cannot override the configuration options again.
3939
:::
4040

41+
::: warning
42+
The persistent outbox can only be used if it's enabled globally with `cds.requires.outbox = true`.
43+
:::
44+
4145

4246

4347
You can also configure services to be outboxed:

0 commit comments

Comments
 (0)