How to apply a function to a Query All Records API function stack

Answered

I made a simple function that calculates the age of a person based on a date column and a timestamp column. It works very similarly to the basic age function laid out in this tutorial.

https://docs.xano.com/working-with-data/functions/custom-functions

How would I apply a function like this to a Query All Records so it would add the result to every record in the API run? I've tried For Each Loops and Update Variable, but neither has worked for me.

It only delivers one function separate of the dataset and I am not sure how it is getting to its calculation.

And when I try putting it in a For Each Loop I just create a mess of arrays and the calculation still ends up at the end as a separate variable.

I'd really appreciate any help.

2 replies