Is there any command to rename the collection or move documents from one collection to other in firestore through flutter
CodePudding user response:
There is no built-in command or operation to rename a collection of move documents.
You will have to build this yourself, based upon the existing API, typically by first reading the documents from the source, then writing them to the destination, and finally deleting them fro the source. If you need the operation to be atomic, you'll want to do all of this using one or more transactions.
