If I want to write to the database from my client side, I can inject an AngularFirestore instance and generate an id automatically using createId():
const individualId = this.angularFirestore.createId();
But if I want to do the same thing in a cloud function, using the Firestore admin API, I can't find an equivalent operation. I can create a Firestore instance in a cloud function by running
const db = admin.firestore();
However, the object that is created has no createId() function available.
Is there an equivalent to createId() that I can use within a cloud function?