Skip to content

Commit

Permalink
Document .from(), mark .as() as deprecated (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariayord and johannes-vogel authored Sep 16, 2024
1 parent 49af3a3 commit f8b4954
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions node.js/cds-ql.md
Original file line number Diff line number Diff line change
Expand Up @@ -698,15 +698,16 @@ INSERT.into (Books) .columns (
[ 252, 'Eleonora', 150, 234 ]
)
```
### as() {.method}
### from() {.method #from}


Constructs a _INSERT into SELECT_ statement.
```js
INSERT.into('Bar') .as (SELECT.from('Foo'))
INSERT.into('Bar') .from (SELECT.from('Foo'))
```
### as() {.method}


The use of _.as()_ method is deprecated. Please use [_.from()_](#from) method instead.


## UPSERT {.class}
Expand Down

0 comments on commit f8b4954

Please sign in to comment.