firestore unique id code example Example: firestore generate unique id let newUid = AngularFirestore.createId();