I\'m trying to update a field timestamp with the Firestore admin timestamp in a collection with more than 500 docs.
const batch = d
Your solution will not really be "recursive". If you want to batch update a collection with more than 500 documents, you will have to iterate the documents, create batches of 500 or less on your own, then commit the batches individually. Or, you can simply update each document individually, as there might not be any real need for batches in your situation.