cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Dear CAP Community,

I am trying to experiment with the cds repl using the famous bookshop demo example rolled out by SAP.

I have set up the Visual Studio code and installed all the necessary node modules like @sap/cds-dk along with installation of npm and nodejs. After launcing the cds repl using cds r and instantiating the cds facade object using -> const cds = require('@sap/cds').connect('db') in the repl, I am trying to call cds.entities, but I don't get the list of entities defined - Books, Authors, Orders. It is coming blank, do we know why?

Best Regards,

Tanmoy

View Entire Topic
Aydin-Ozcan
Explorer
0 Likes

As martin.stenzig3 pointed out you have to bootstrap your app.

One nice trick i use for bootstraping is using cds.test

const test = cds.test(‘./‘)