Solved
Forum Discussion
koryknick
3 years agoEmployee
I’m not sure what the mapValues is doing in your example, but you can use extend() to add to the JSON document. In this case, you would create a new object with your “yesterday” field and extend that with the incoming object. Something like this:
{ "yesterday" : Date.now().minusDays(1).toLocaleDateString() }.extend($)