Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Kunz committed Dec 22, 2023
1 parent 60cc708 commit 3f380de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node.js/outbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ You still need to `await` these operations, because messages might be stored in
The `cds.outboxed` function can also be called with optional configuration options.

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

::: tip
One you outboxed a service, you cannot override the configuration options again.
:::

::: warning
The persistent outbox can only be used if it's enabled globally with `cds.requires.outbox = true`.
:::



You can also configure services to be outboxed:
Expand Down

0 comments on commit 3f380de

Please sign in to comment.