Hey everyone, I need some help converting this code to modular firebase 9:
fb8:
const userRef = db.collection('Users').doc();
to fb9:
const userRef = doc(db, 'Users');
But when I try to do that, I keep getting this error message:
FirebaseError: Invalid document reference. Document references must have an even number of segments, but Users has 1.
Any assistance would be greatly appreciated!