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