Skip to content
Merged
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
15 changes: 9 additions & 6 deletions node.js/core-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,19 +396,23 @@ var srv.options : { //> from cds.requires config



### . entities {.property alt="The following documentation on operations also applies to entities. "}
### . entities {.property alt="The following documentation on actions also applies to entities. "}

### . events {.property alt="The following documentation on operations also applies to events. "}
### . events {.property alt="The following documentation on actions also applies to events. "}

### . operations {.property}
### . operations {.property .deprecated alt="The following documentation on actions also applies to operations. "}

Use [`.actions`](#actions) instead.

### . actions {.property}

```tsx
var srv.entities/events/operations : Iterable <{
var srv.entities/events/actions : Iterable <{
name : CSN definition
}>
```

These properties provide convenient access to the CSN definitions of the *entities*, *events* and operations — that is *actions* and *functions* exposed by this service.
These properties provide convenient access to the CSN definitions of the *entities*, *events* and *actions* (incl. *functions*) exposed by this service.

They are *iterable* objects, which means you can use them in all of these ways:

Expand All @@ -423,7 +427,6 @@ for (let d of this.entities) //... d is a CSN definition




### srv. init() {.method}

```tsx
Expand Down