Skip to content

Commit 68a4d99

Browse files
Added clarification for options in cds.connect.to (#2289)
Co-authored-by: René Jeglinsky <[email protected]>
1 parent 8852317 commit 68a4d99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

node.js/cds-connect.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ async function cds.connect.to (
4646

4747
Argument `name` is used to look up connect options from [configured services](#cds-env-requires), which are defined in the `cds.requires` section of your _package.json_ or _.cdsrc.json_ or _.yaml_ files.
4848

49-
Argument `options` also allows to pass additional options such as `credentials` programmatically, and thus create services without configurations and [service bindings](#service-bindings), for example, you could connect to a local SQLite database in your tests like this:
49+
Argument `options` also allows to pass additional options programmatically. The available and supported properties of options depend on the selected `kind`.
50+
Each `kind` defines its own set of expected configuration properties (for example, `credentials`, `model`, `service`). This allows creating services without configurations and [service bindings](#service-bindings). For example, you could connect to a local SQLite database in your tests like this:
5051

5152
```js
5253
const db2 = await cds.connect.to ({

0 commit comments

Comments
 (0)