Skip to main content

What are the best practices for writing code in NodeJS app in Quickwork?

Comments

1 comment

  • Rajnish Kucheria

    Here are the best practices for writing code in the Node.js app in Quickwork:

    • Always pass string-type values from previous steps using the context input field to avoid issues with escaping double or single quotes in string values.
    •  For object-type values, use data pills directly without additional transformations.
    •  If a data pill’s value is not always present in previous steps, use the context input field to handle its value in the code. This ensures your code doesn’t throw syntax errors due to missing values.
    •  Ensure the output variable is always assigned a value to pass the processed data to subsequent steps.
    0

Please sign in to leave a comment.