Function Incorrectly Updates an Ignored Field

Options
I have a function that updates two of three fields in an object. The third one, onboarding_completed, is ignored so it shouldn't change.

However, when the function runs, it sets onboarding_completed to false.

Starting onboarding_completed value is true[CleanShot 2021-12-21 at 15.17.27@2x.jpg]
The Function (set to ignore onboarding_completed)[CleanShot 2021-12-21 at 15.18.02@2x.jpg]
Resulting Debugger
• Input correctly shows onboarding_completed being ignored and initial value of true.
• However, the result shows onboarding_completed set to false.[CleanShot 2021-12-21 at 15.21.42@2x.jpg]

Comments

  • Michael Udinski
    Michael Udinski Administrator

    ADMIN

    Options
    Xano does full object replacements so you would need to first get the object, update it in a variable, then replace the entire object with the updated value in the variable