// jQuery
$(document).ready(function() {
// code
})
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.mv = functions.https.onRequest(request => { | |
const mv = async (collRefSource, collRefDest) => { | |
const querySnapshot = await collRefSource.get(); | |
querySnapshot.forEach(async docSnapshot => { | |
(async () => { | |
await collRefDest.doc(docSnapshot.id).set(docSnapshot.data()); | |
docSnapshot.ref.delete(); | |
})(); | |
const collRefs = await docSnapshot.ref.getCollections(); | |
for (const collRef of collRefs) |