Skip to content

Commit

Permalink
Update node.js/core-services.md
Browse files Browse the repository at this point in the history
Co-authored-by: René Jeglinsky <[email protected]>
  • Loading branch information
etimr and renejeglinsky authored Oct 10, 2023
1 parent 8fda540 commit a22dc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js/core-services.md
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ srv.patch('/Books',...) --> srv.send('PATCH','/Books',...)
srv.delete('/Books',...) --> srv.send('DELETE','/Books',...)
```

Leading slash in the `path` argument results in the same behaviour as in `srv.send()`: `path` is sent to a service unmodified. Omitting the leading slash or passing a reflected entity definition instead, constructs *bound* [`cds.ql` query objects](cds-ql), equivalent to [CRUD-style API](#crud-style-api):
Leading slash in the `path` argument results in the same behaviour as in `srv.send()`: `path` is sent unmodified to a service. Omitting the leading slash, or passing a reflected entity definition instead, constructs *bound* [`cds.ql` query objects](cds-ql), equivalent to [CRUD-style API](#crud-style-api):

```js
await srv.get(Books,201)
Expand Down

0 comments on commit a22dc60

Please sign in to comment.