0๐
โ
I misunderstood what firestore()
does.
firestore()
is not a call to a running database. It is more to akin to establishing a connection which was previously assigned to db.
The reason this did not work was because, there was already a connection, db.
Source:stackexchange.com