docs
docs copied to clipboard
Incomplete documentation for cds.spawn example
Hi colleagues,
It would be nice to detail more about the code snippet documented in this section
https://cap.cloud.sap/docs/node.js/cds-tx#cds-spawn
Where is supposed to be used this code ?
Should this be place inside a service handler? Or should this code be placed in somewhere else to be initialized when the server starts.
Could you provide a complete example for this cds.spawn ?
Thanks
Hi @martindonadiosap, thanks for opening this issue.
@David-Kunz Would you be able to help?
Hi @martindonadiosap ,
It's completely up to the application developer when cds.spawn is run. It could be for example during the server start (e.g. in a custom server.js file), or when a handler is triggered.
Best regards, David
Understood, thanks @David-Kunz