cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Node.js: reflection documentation change

martinstenzig
Contributor
0 Kudos

I am referring to URL:

https://cap.cloud.sap/docs/node.js/cds-reflect

Please get back to me on the following feedback:

There seems to be an error in the example...

Current Example:
const m = cds.linked (CQL`
  type Bar : String(22);
  entity Foo { bar: Bar }
  entity Woo as projection on Foo;
`)
 
 
It must not be ‘CQL’, but ‘CDL’
const m = cds.linked (CDL`
  type Bar : String(22);
  entity Foo { bar: Bar }
  entity Woo as projection on Foo;
`)


robinjayasinghe
Advisor
Advisor
0 Kudos

Thanks for the report, Martin! I'll check with the colleagues. 🙂

View Entire Topic
Daniel7
Advisor
Advisor

Thanks for reaching out Robin, and absolutely correct: It's CDL, of course. Btw. cds.linked now also accepts plain CDL strings, so cds.linked(`...`) works as well.

chgeo
Advisor
Advisor
0 Kudos

Will be fixed with the next documentation update this week.