You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to select translated data from the localized view of entities with the new db services introduced in cds v8. According to documentation/samples, we should be able to use SELECT.localized to redirect the read request to localized views of the entities. However the SELECT type does not have the localized property.
Is there an existing issue for this?
Current Behavior
I am trying to select translated data from the localized view of entities with the new db services introduced in cds v8. According to documentation/samples, we should be able to use SELECT.localized to redirect the read request to localized views of the entities. However the SELECT type does not have the localized property.
I am using @cap-js/hana db service.
Expected Behavior
SELECT.localized does not report type error
References
CAP Documentation (only mentioned in SQLite's page which introduced @cap-js/sqlite earlier): https://cap.cloud.sap/docs/guides/databases-sqlite#localized-queries
Samples: https://github.com/search?q=SELECT.localized+language%3AJavaScript&type=code
Versions
| @cap-js/asyncapi | 1.0.2 |
| @cap-js/cds-typer | 0.25.0 |
| @cap-js/cds-types | 0.6.5 |
| @cap-js/db-service | 1.12.1 |
| @cap-js/hana | 1.2.0 |
| @cap-js/openapi | 1.0.5 |
| @sap/cds | 8.2.3 |
| @sap/cds-compiler | 5.2.0 |
| @sap/cds-dk | 8.2.3 |
| @sap/cds-dk (global) | 8.2.3 |
| @sap/cds-fiori | 1.2.7 |
| @sap/cds-foss | 5.0.1 |
| @sap/cds-mtxs | 2.1.0 |
| @sap/eslint-plugin-cds | 3.0.5 |
| Node.js | v20.16.0 |
| home | C:\Users\Work\Downloads\cobalt\backend\node_modules@sap\cds |
Anything else? Logs?
Workaround that works for now is to do (SELECT as any)
The text was updated successfully, but these errors were encountered: