From 99cc961e57f343154eefe1aa0f3c7e01ef67af79 Mon Sep 17 00:00:00 2001 From: Mariya Yordanova Date: Mon, 9 Sep 2024 18:29:45 +0200 Subject: [PATCH] Document .from(), mark .as() as deprecated --- node.js/cds-ql.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/node.js/cds-ql.md b/node.js/cds-ql.md index 6ab9b9dc4..431724846 100644 --- a/node.js/cds-ql.md +++ b/node.js/cds-ql.md @@ -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}