I\'m trying to write a Google Cloud Function that listens to a firebase realtime database, and on creation of a new document writes a duplicate to an adjacent index, for exa