The new version 9 of the Firebase JS SDK has arrived with a more modular approach, and I'm trying to wrap my head around it.
I want to find and read a document from Firestore by its ID. In version 8, you could do:
await db.collection('users').doc(id).get();
Version 9 seems to have a function called "doc", and one called "getDoc", that could sound like the new equivalent, but I don't understand how to use them in practice. Has someone else played around with these yet?
Thanks in advance!