I use the projection syntax in a SELECT to expand associations. Unfortunately, the proposed solution at the CAP documentation (combination of projection and tagged template strings) is not valid TypeScript syntax. Here the example from the documentation:
Is there an existing issue for this?
Current Behavior
I use the projection syntax in a SELECT to expand associations. Unfortunately, the proposed solution at the CAP documentation (combination of projection and tagged template strings) is not valid TypeScript syntax. Here the example from the documentation:
I tried a workaround which is working:
but unfortunately a cast to
SELECT<unknown>
is necessary.Expected Behavior
The expected behaviour is allowing the "where" w/o casting:
References
https://cap.cloud.sap/docs/node.js/cds-ql#columns
Versions
Anything else? Logs?
I can also contribute if you need.