[BUG] Cannot use a 'where' statement on a projection used in SELECT.from(...).columns() #203
Open
1 task done
Labels
bug
Something isn't working
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.
The text was updated successfully, but these errors were encountered: