Hello. With Pipedream, I want to increase the Golds(number) data in my html request time firestore database. But instead of increasing it, it saves the data as it is.
I want it to be current value(100) + {{steps.trigger.event.query.rewards}} but instead of 100 + it just does {{steps.trigger.event.query.rewards}}. So instead of increasing the number, it directly sets it to {{steps.trigger.event.query.rewards}}.
First off, welcome to the Pipedream community. Happy to have you!
I want it to be current value(100) + {{steps.trigger.event.query.rewards}} but instead of 100 + it just does {{steps.trigger.event.query.rewards}}.
You’ll need to include the math operation within the JS evaluation for it to work properly:
{{value + steps.trigger.event.query.rewards}}
Also, verify that the query.rewards is being interpreted as an integer or float type. If it’s interpreted as a string, then the addition won’t work as you’d expect.
Please note, this is generated by our GPT-3 bot Mario in our public Slack workspace. It’s not been tested, but usually Mario is pretty good at generating components like these.