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