on 2024 Oct 30 8:43 AM
Hi,
does anyone have a working example of cds.foreach? I always get error messages that it is a query3 and not query2.
Docu: https://cap.cloud.sap/docs/node.js/core-services#srv-foreach-entity
Request clarification before answering.
Hi @akuller ,
Is it possible that maybe you missed a single quote (') around your entity name?
Could you try it in the following way:
SELECT.from('Requests')
Regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @akuller , it works for me. I just tried with the Standalone CDI with @cap-js/cds-typer 0.4.0. I receive no type error and no runtime error, foreach just runs with no problem.
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.