Hi,
first of all, great job in providing this tool 😎.
However, I discovered that you cannot really use Date objects at Date elements of a CDS entity.
The framework will return strings like 2022-09-01 for such elements, and if you pass a Date object during an INSERT.into call nothing will be written in the database
We are using these npm versions:
- @sap/cds: 5.9.8
- @sap/cds-compiler: 2.15.4
- @sap/cds-dk: 6.0.3
- @sap/eslint-plugin-cds: 2.4.1
Right now we are just rewriting such Date properties in the generated type files back to string as a workaround.
Regards,
Ludwig
Hi,
first of all, great job in providing this tool 😎.
However, I discovered that you cannot really use
Dateobjects atDateelements of a CDS entity.The framework will return strings like
2022-09-01for such elements, and if you pass aDateobject during anINSERT.intocall nothing will be written in the databaseWe are using these npm versions:
Right now we are just rewriting such
Dateproperties in the generated type files back tostringas a workaround.Regards,
Ludwig