Skip to Content
0
Jun 30, 2020 at 05:10 PM

CDS Watch on Standard NodeJS project

1279 Views

Hi All,

I have 2 service layers in CAP project. One service layer is a CDS based service layer and another is Express based service layer (Both are NodeJS). The project structure is somewhat like this:

db
- data-model.cds

srv1
- x.cds
- x.js

srv2
- server.js

  1. How can I have CDS watch look for srv2 folder and expose it as a service?
  2. Can my srv2 service call the cds entities as belows:
    const {X} =cds.entities('my.perstlayer');

Thanks,

Harish