Skip to content

Commit 77ed90e

Browse files
authored
fix: .actions instead of deprecated .operations (#2267)
1 parent 92c73f8 commit 77ed90e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

node.js/core-services.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,19 +396,23 @@ var srv.options : { //> from cds.requires config
396396

397397

398398

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

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

403-
### . operations {.property}
403+
### . operations {.property .deprecated alt="The following documentation on actions also applies to operations. "}
404+
405+
Use [`.actions`](#actions) instead.
406+
407+
### . actions {.property}
404408

405409
```tsx
406-
var srv.entities/events/operations : Iterable <{
410+
var srv.entities/events/actions : Iterable <{
407411
name : CSN definition
408412
}>
409413
```
410414

411-
These properties provide convenient access to the CSN definitions of the *entities*, *events* and operationsthat is *actions* and *functions* exposed by this service.
415+
These properties provide convenient access to the CSN definitions of the *entities*, *events* and *actions* (incl. *functions*) exposed by this service.
412416

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

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

424428

425429

426-
427430
### srv. init() {.method}
428431

429432
```tsx

0 commit comments

Comments
 (0)