Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion node.js/cds-facade.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,8 @@ Provides access to common event context properties like `tenant`, `user`, `local
The effective [CDS model](../cds/csn) loaded during bootstrapping, which contains all service and entity definitions, including required services. Many framework operations use that as a default where models are required. It is loaded in built-in `server.js` like so:

```js
cds.model = await cds.load('*')
const csn = await cds.load('*')
cds.model = cds.compile.for.nodejs(csn)
```

[Learn more about bootstrapping in `cds.server`.](./cds-serve){.learn-more}
Expand Down
3 changes: 2 additions & 1 deletion node.js/core-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ In essence, the built-in bootstrapping logic works like that:

```js
cds.app = require('express')()
cds.model = await cds.load('*')
const csn = await cds.load('*')
cds.model = cds.compile.for.nodejs(csn)
cds.services = await cds.serve('all').from(cds.model).in(cds.app)
```

Expand Down
Loading