Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete documentation for cds.spawn example #1097

Open
martindonadiosap opened this issue Jul 10, 2024 · 2 comments
Open

Incomplete documentation for cds.spawn example #1097

martindonadiosap opened this issue Jul 10, 2024 · 2 comments
Assignees

Comments

@martindonadiosap
Copy link

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

@renejeglinsky
Copy link
Contributor

Hi @martindonadiosap,
thanks for opening this issue.

@David-Kunz Would you be able to help?

@David-Kunz
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants